Professional Documents
Culture Documents
#1 Pseudo Code and Flowchart
#1 Pseudo Code and Flowchart
From these
inputs, count the number of even and number present in the inputs.
Enter inputs: 10 2 3 5 7 2
Pseudo code
Step 1. Start
Step 5.
Step 6. If number % 2 == 0
Step 7. Even ++
repeat step 5
Step 8. If number % 2 != 0
Step 9. Odd ++
repeat step 5
Input = n
Even = 0
Odd = 0
Input = num
NO YES
Is num % 2 == 0?
Odd ++ Even ++
Print even and odd
End