1.Read n$, M1, M2, M3
2.While M1 <> -1
3.M4 = (M1+M2+M3)/3
4.T1 = t1 + m1
5.T2 = t2 + m2
6.T3 = t3 + m3
7.If M4<50 THEN
8.S$ = “FAIL”
9.ELSE IF M4<70 THEN
10.S$ = “PASS”
11.ELSE
12.S$ = “CREDIT”
13.END IF
14.END IF
15.Print n$, M4, S$
16.Read n$, M1, M2, M3
17.Wend
18.Print “Math”, “Eng”, “Bang”
19.Print t1/3, t2/3, t3/3
0 Comments