Advertisement
zfhridoy47

problem_5

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