Question: Exercise 2: Write an algorithm that requires input two numbers, and if the result of addition is equal to the result of multiplication, display the
Exercise 2: Write an algorithm that requires input two numbers, and if the result of addition is equal to the result of multiplication, display the values of those two numbers, else display a message. Solution 2 : Algorithm name: Compare_Values2 Variables Num1, Num2, ResAdd, ResMul as Numbers START WRITE'Input a number: READ Num1 WRITE 'Input another number: READ Num2 ResAdd := ResMul := WRITE "?" END
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
