Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- double a,b,c;
- printf("Enter the value of a==");
- scanf("%lf",&a);
- printf("Enter the value of b==");
- scanf("%lf",&b);
- printf("Enter the value of c==");
- scanf("%lf",&c);
- if(a>b && a>c)
- {
- printf("The greatest number is %lf",a);}
- else if(b>a && b>c)
- {
- printf("The greatest number is %lf", b);}
- else if(c>b && c>a)
- {
- printf("The gretest number is %lf",c); }
- else if(a==b&& b==c)
- printf("The numbers are equal");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement