write an algorithm and draw a flowchart to print all numbers from 1 to20
Answers
Answered by
11
Explanation:
This preview shows page 1 - 3 out of 3 pages.
Algorithm to print all number from 1 to 20:-Step 1: StartStep 2: Initialize variable number as integernumber (n) = 1Step 4: Read and print the value of numberStep 5: Repeat the step 4 until number < 205.1: number = number (n) + 1Step 6: StopAlgorithm to print even number from 1 to 20:-Step 1: Start
Similar questions