Sunday 12 August 2012

Pseudocode to check whether number is odd or even

Pseudocode to check whether the number entered is Odd or Even




1. START
2. DISPLAY "Enter the Number - "
3. READ number
4. IF number MOD 2 = 0 THEN
              DISPLAY "Number is Even"
    ELSE
              DISPLAY "Number is Odd"
    END IF
5. STOP




6 comments:

  1. write a pseudo code for display user given value is odd or Even.output should be as follows
    10 is even number,
    7 is odd number,

    ReplyDelete
  2. i was hear that their is no if else statment in pseducode how it is in this pseducode

    ReplyDelete
  3. Flowchart and pseudo code to display five numbers with their squares

    ReplyDelete
  4. Can u tell that what is mod in this program?

    ReplyDelete