Professional Documents
Culture Documents
Tricia Ann Bernadette C. Radovan CS-O/FOPM02: FA1.2 Laboratory Exercise No.2
Tricia Ann Bernadette C. Radovan CS-O/FOPM02: FA1.2 Laboratory Exercise No.2
CS-O/FOPM02
FLOWCHART
PSEUDOCODE
Variable used
yr is numeric
Begin
Accept yr
If (yr%400==0) then
Begin
End
Begin
If (yr%4==0) then
Else
End
Else
End
FA1.2 Laboratory Exercise No.2
2. Iterative - Factors of a
Number
FLOWCHART
PSEUDOCODE
Variables used
Begin
Accept n
ctr=0
If (n>0) then
Begin
Begin
ctr = ctr + 1
If (n%ctr==0) then
Display ctr
End
End
End