Page 273 - AI Ver 1.0 Class 9
P. 273
If we have to represent branching or looping in flowchart then we use a diamond symbol with directions as YES or No.
Let us try to find out the age for driving licence using a flowchart.
START
INPUT AGE
IS AGE NO DISPLAY "NOT
>=18? ELIGIBLE"
YES
DISPLAY
"ELIGIBLE"
STOP
If we have to repeat the printing of hello five times then the flowchart for this kind of looping will be:
START
COUNT=1
IS NO
COUNT<=5? STOP
YES
DISPLAY
"HELLO"
COUNT=COUNT+1
Introduction to Python 271

