Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void main()
- {
- int a,b,Max,Min;
- printf("Enter two values: ");
- scanf("%d %d",&a,&b);
- if(a>b)
- {
- Max=a;
- Min=b;
- }
- else
- {
- Max=b;
- Min=a;
- }
- printf("MAX = %d\nMIN = %d\n",Max,Min);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement