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