1. .eg¨ úi|Sug l%uf,aL ,sùu
ufyaIa fldä;=jlal=
BTec(ICT) , MCTS. MIEEE
Professional Development Course in ICT (AIT-Thailand)
National Dip in Teaching (Merit)
11. • Algorithm hkq .eg¨jla úi|Su i|yd
wkq.ukh lrk l%ufõoh wkqms<sfj<ska
,shd oelaùuhs‘
• a process or set of rules to be
followed in calculations or other
problem-solving operations,
especially by a computer.
28. mqk¾lrK j¾. Type of Loops
• While ..do
• For… do
• Repeat …Untill
29. Start
Num <= 10
Display “Sri Lanka”
Num = 1
Num = Num + 1
Stop
Yes
No
While do Loop
Begin
Num = 1
While Num < =10 do
Display “Sri Lanka”
Num = Num + 1
End while
End
30.
31. Start
Num > 10
Display “Sri Lanka”
Num = 1
Num = Num + 1
Stop
No
Yes
Repeat Until
Begin
Num = 1
Repeat
Display “Sri Lanka”
Num = Num + 1
Until Num > 10
End