Computer Applications

Write an algorithm and draw the flowchart for the following:

Print the smallest of two numbers.

Algo & Flowcharts

332 Likes

Answer

Algorithm

Step 1: Start
Step 2: Read the two numbers and store them in a and b.
Step 3: Check if a < b
Step 4: If true then print a and goto step 6
Step 5: If false then print b
Step 6: Stop

Flowchart

Draw a flowchart to print the smallest of two numbers.

Answered By

238 Likes


Related Questions