Tanmoy12393

CSE LAB

May 24th, 2019
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int x;
  5.  
  6.     scanf("%d",&x);
  7.  
  8.     if(x%2 == 0){
  9.         printf("the number is even\n") ;
  10.     }
  11.     else {
  12.         printf("the number is odd\n");
  13.     }
  14.     return 0;
  15. }
Add Comment
Please, Sign In to add comment