Programming in "C‟ | Write on algorithm and draw a flow chart to find whether the entered number is even or odd.

 Algorithm:

1. start the program

2. Input a number

3. check whether number is divisible by 2 or not. if yes goto step 4  

    otherwise goto step 5

4. display that the numebr is even and go to step 6

5. display that the number is odd.

6. stop the program

Post a Comment

0 Comments