Page 366 - Ai_417_V3.0_C9_Flipbook
P. 366
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
364 Touchpad Artificial Intelligence (Ver. 3.0)-IX

