0% found this document useful (0 votes)
90 views3 pages

Flowcharts 2

This document discusses using a loop to print the phrase "Hello World" 10 times. It introduces a variable called count that is initialized to 0 and incremented by 1 each time through the loop. The loop continues printing "Hello World" and incrementing count until the condition of count being less than 10 becomes false.

Uploaded by

vickyverma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views3 pages

Flowcharts 2

This document discusses using a loop to print the phrase "Hello World" 10 times. It introduces a variable called count that is initialized to 0 and incremented by 1 each time through the loop. The loop continues printing "Hello World" and incrementing count until the condition of count being less than 10 becomes false.

Uploaded by

vickyverma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 3

FLOWCHARTS

LOOPING
Print Hello World 10 times
This problem is also solved using the loop concept. We take a variable
count and set it to zero. Then we print "Hello World" and increment
count by 1.
i.e., count = count + 1
Next we check if count is less than 10. If this is TRUE then we again
print "Hello World" and increment the variable count. On the other
hand if the condition if FALSE then we will stop.

Algorithm (in simple English)


1. Initialize count = 0 (PROCESS)
2. Print Hello World (I/O)
3. Increment count by 1
(PROCESS)
4. Is count < 10 (DECISION)
5. if YES go to step 2
else Stop

You might also like