You are Given two numbers A and B you have to make both the numbers equal to zero in Only two operations.the oprations you can perform is addition and subtraction no other operation (NOTE: Numbers can be Negative).
Print “YES” without quotes if it is possible to make both the Numbers zero in two operations else print “NO”.
You have to perform one operation on each number.if the number requires more than one operation to become zero the print “NO”.
The Answer for this question will be always “YES”. Let’s understand this in explanation section given below.
Just after thinking for some time and taking some testcases in mind you will find that for any testcase the answer will be always “YES”.
As mentioned above we can perform the addition and subtraction operation on numbers. so keeping this in mind let’s take a example and understand it.
if we subtract 36 from 36 the we will get the answer zero that to in one operation so the answer is “YES”.
if we add 40 to -40 we will get the answer zero that to in one operation so the answer for this one will be “YES”.
So after observing it we can find that we can make every number zero in one operation so the answer for every testcase will be always “YES”.