0% found this document useful (0 votes)
5 views

Loop Pseudocode (David James B. Ignacio)

The document provides pseudocode to check if input numbers are odd or even by using the modulo operator and printing 'Even' or 'Odd' based on whether the number is divisible by 2 with no remainder.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Loop Pseudocode (David James B. Ignacio)

The document provides pseudocode to check if input numbers are odd or even by using the modulo operator and printing 'Even' or 'Odd' based on whether the number is divisible by 2 with no remainder.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

DAVID JAMES B.

IGNACIO

Create a loop that checks if a number is odd or even.

Input:
Count number: 6 2 8 7 15 67 38

Sample output:
Even even even odd odd odd even

Algorithm
1. Enter a number
2. Read the number
3. Condition:
If the number is divisible by 2 and has 0 remainder/modulus, then print Even,
Otherwise print Odd

Pseudocode
1. Enter a number
2. Read the number
3. Condition:
If the number %2 == 0: then print Even, otherwise print Odd

You might also like