Advertisement
ssr17

odd_even

Aug 15th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main ()
  4. {
  5.     int x, y;
  6.  
  7.     printf("Enter two numbers : ");
  8.     scanf("%d %d", &x, &y);
  9.  
  10.     if(x % 2 == 0)
  11.         printf("%d is Even\n",x);
  12.     else
  13.         printf("%d is Odd\n",x);
  14.     if(y % 2 == 0)
  15.         printf("%d is Even\n",y);
  16.     else
  17.         printf("%d is Odd\n",y);
  18.  
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement