Flowchart Activities
BEGIN read (num1) read (num2) Set total to num1 + num2 Set average to total / 2 Display average ENDBEGIN read (score) IF score >= 85 Display "Excellent" ELSEIF score >= 70 Display "Good" ELSEIF score >= 50 Display "Average" ELSE Display "Fail" ENDIF ENDBEGIN read (N) Set totalSum to 0 FOR i = 1 to N Add i to totalSum NEXT i Display totalSum ENDBEGIN read (N) Set totalSum to 0 FOR i = 1 to N Call CheckEven (i, totalSum) NEXT i Display totalSum END BEGIN CheckEven (num, totalSum) IF num MOD 2 = 0 Add num to totalSum ENDIF END CheckEven
Last updated
