Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int X, Y;
- printf("Enter two numbers: ");
- scanf("%d %d", &X, &Y);
- if(X > Y)
- {
- printf("%d is maximum", X);
- }
- else if(Y > X)
- {
- printf("%d is maximum", Y);
- }
- if(X == Y)
- {
- printf("Both are equal");
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment