Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int x, y;
- printf("Enter number 1: ");
- scanf("%d%*c", &x);
- printf("Enter number 2: ");
- scanf("%d%*c", &y);
- if(x == y)
- printf("Both values are equal\n");
- else
- if(x > y)
- printf("The first value is greater than the second value.\n");
- else
- printf("The second value is greater than the first value.\n");
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment