draw a flow chart to print numbers less than 10
Answers
Answered by
2
What is a flowchart?
It is a graphical representation of an algorithm.
Algorithm of the question-
Step 1 - Start
Step 2 - Declare a variable n with value 1.
Step 3 - Run a loop that check that the number is smaller than or equal to 10 or not. If yes, jump to Step 4. If no, jump to Step 6.
Step 4 - Print n. Jump to Step 5.
Step 5 - Increase the value of n by 1 (or n++).
Step 6 - End.
Flowchart - in attachment.
Attachments:
Similar questions
English,
1 month ago
Social Sciences,
1 month ago
Math,
3 months ago
Math,
3 months ago
Social Sciences,
10 months ago
Biology,
10 months ago