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