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