Computer Science, asked by anjana912, 2 months ago

draw a flow chart to print numbers less than 10

Answers

Answered by deepakkumar9254
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