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