Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1.     #include<stdio.h>
  2.     int main()
  3.     {
  4.     int a;
  5.     printf("Enter a: \n");
  6.     scanf("%d", &a);
  7.     /* logic */
  8.     if (a % 2 == 0)
  9.     {
  10.         printf("The given number is EVEN");
  11.     }
  12.     else
  13.     {
  14.         printf("The given number is ODD");
  15.     }
  16.     return 0;
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement