Sunday, 12 August 2012

Pseudocode to check whether number is divisible by 7 or not

Pseudocode to check whether number is divisible by 7 or not


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




No comments:

Post a Comment