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