Professional Documents
Culture Documents
Part 2
Paste the flowchart below:
Start
Loop
"input a number"GET i
Yes No
i>0
Yes No
10 mod i = 0 PUT "Positive number is expected."¶
a←0
a←1 PUT "Integral number is expected."¶
a←0
Yes
a=1
No
total ← 0
Loop
Yes
i=0
No
Yes No
i !=0
PUT i * (i - 1)¶
total ← total + i * (i - 1)
i←i-1
PUT total¶
End