Algorithms & Flowcharts for ICSE Computers
Write an algorithm and draw the flowchart for the following:
Print the smallest of two numbers.
Algo & Flowcharts
334 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.](https://cdn1.knowledgeboat.com/img/lgx8/flowchart-smallest-of-two-numbers-logix-class-8-computer-v1.png)
Answered By
240 Likes