1. Start.
2. Read a number.
3. If the remainder of number/2 is equal to zero, then the number is even (number%2==0). Go to step 5.
4.Else the number is odd.
5. End.
2. Read a number.
3. If the remainder of number/2 is equal to zero, then the number is even (number%2==0). Go to step 5.
4.Else the number is odd.
5. End.
No comments:
Post a Comment