Advertisement
ruhul0

even odd without mod

Mar 13th, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.13 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4.     int a;
  5.     scanf("%d",&a);
  6.     if ((a/2)*2==a)
  7.     printf("even");
  8.     else
  9.     printf("odd");
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement