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