Computer Science, asked by greonta, 1 month ago

Write an algorithm to accept two numbers. If the two numbers are equal then find the product otherwise find the differences.​

Answers

Answered by ItzMeSam35
2

ALGORITHM :

1) Start

2) Initialize Two Variables , A and B as int

3) Input A and B value from the user

4) Start If A Is Equal To B then Initialize Product as int

5) Multiply A and B and Store The Value in Variable Product

6) Print Product

7) Else Initialize Difference as int

8) Subtract A and B and Store The Value in Variable Difference

9) Print Difference

10) End If Condition

11) End Program

Similar questions