Important Notice:

Course Content
Introduction to Programming (Chapter 1) M3-R5.1
About Lesson

Algorithm Question

Problem − Design an algorithm to add two numbers and display the result.

step 1 − START

step 2 − declare three integers a, b & c

step 3 − define values of a & b

step 4 − add values of a & b

step 5 − store output of step 4 to c

step 6 − print c

step 7 – STOP

Problem: Create an algorithm that multiplies two numbers and displays the output.

Step 1 − Start

Step 2 − declare three integers x, y & z

Step 3 − define values of x & y

Step 4 − multiply values of x & y

Step 5 − store result of step 4 to z

Step 6 − print z

Step 7 – Stop

error: Content is protected !!