Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int even_odd(int a)
- {
- return (a%2==0);
- }
- int main()
- {
- int a;
- scanf("%d", &a);
- if(even_odd(a))
- printf("Even");
- else
- printf("Odd");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement