Page 286 - Artificial Intellegence_v2.0_Class_9
P. 286
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
284 Touchpad Artificial Intelligence (Ver. 2.0)-IX

