Professional Documents
Culture Documents
s4 Pseudocode Fuentes, Jayrald G
s4 Pseudocode Fuentes, Jayrald G
s4 Pseudocode Fuentes, Jayrald G
CpE - 1A
No. 1
Start
Read A, B, C
If A > B then
If A > C
Print "A is the Greatest"
Else
Print "C is the Greatest"
Endif
If B > C
Print "B is the Greatest"
Else
Print "C is the Greatest"
Endif
End
No. 2
Start
Declare and Initialize variable n = 1
Declare and Initialize variable s = 0
Compute s = s + n
If n = 50
n = n+1 if NO go to after s=0
if YES go to Print s
End
No. 3
Start
Declare and Initialize variable N = 2
Print N
Compute N = N+2
If N < = 20
if true go to Print N
Print sum
End