Advertisement
Kawsar_Hossain

Problem_5

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