donmike25

ecp1016 tutorial 2 extra1

Jun 27th, 2013
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.18 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4.     int n;
  5.     printf("Enter an integer:\n");
  6.     scanf("%d",&n);
  7.    
  8.     if ( (n/2)*2==0)
  9.         printf("Even\n");
  10.     else
  11.         printf("Odd\n");
  12.    
  13.  
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment