Computer Science, asked by shivM4356, 10 months ago

Given an equation of the form num1+num2=num3,where one of the num1,num2,num3 is replaced by an X.find the value of X

Answers

Answered by suskumari135
0

Given an equation of the form num1 + num2 = num3

Explanation:

Given equation

num1 + num2 = num3..........................(1)

On replacing, one of the num1, num2 and num3 by an X.

There are following three cases:

Case 1:

Consider, num1 = X

Put value of num1 in eq. (1)

We get,

X + num2 = num3

X = num3 - num2

Hence the value of X is "num3 - num2".

Case 2:

Consider, num2 = X

 Put value of num2 in eq. (1)

num1 + X = num3

X = num3 - num1

Hence, the value of X is "num3 - num1".

Case 3:

Consider, num3 = X

 Put value of num3 in eq. (1)

num1 + num2 = X

X = num 1 + num 2

Hence, the value of X is "num1 + num2".

Similar questions