Question: Exercise 1 : Write an algorithm that requires input two numbers, it will show the result of the addition if it is a difference between

 Exercise 1 : Write an algorithm that requires input two numbers,

Exercise 1 : Write an algorithm that requires input two numbers, it will show the result of the addition if it is a difference between the two numbers or it will show the result of a multiplication if there is an equality between those two numbers. (use OR between conditions) Solution 1 : Algorithm name: Compare_Values1 Variables Num1, Num2, Result as Numbers START WRITE ''Input a number: READ Num1 WRITE ''Input another number: " READ Num2 IF (Numl > Num2) OR ( ? ) THEN Result := ELSE Result := WRITE "?" END

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!