Computer Science, asked by ankit214056, 1 day ago

Write algorithm
To calculate the difference of any two numbers. ​

Answers

Answered by ssasreeja
1

Explanation:

Write an algorithm to find the difference of two numbers A and B where a is greater than b

If ( a < b ) then there will be no answer .

f ( a = b ) then all the numbers greater than a are the answer so there will be infinite solutions possible.

If ( a > b ) Suppose x is an answer to our equation. Then x divides (a – b).

Answered by abhipali143
0

Explanation:

Firt declare 2 variable a, b.

Input nos a, b

Print sum=a+b.

Print difference=a-b

Print product=a*b.

Similar questions