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, 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
Get step-by-step solutions from verified subject matter experts
