Advertisement
Md_hosen_zisad

maximini

Aug 6th, 2017
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.57 KB | None | 0 0
  1.  
  2. #include<stdio.h>
  3. int main()
  4.  
  5. {
  6.     double a,b,c;
  7.     printf("Enter the value of a==");
  8.     scanf("%lf",&a);
  9.     printf("Enter the value of b==");
  10.     scanf("%lf",&b);
  11.     printf("Enter the value of c==");
  12.     scanf("%lf",&c);
  13.  
  14.     if(a>b && a>c)
  15.      {
  16.       printf("The greatest number is %lf",a);}
  17.  
  18.  
  19.     else if(b>a && b>c)
  20.        {
  21.         printf("The greatest number is %lf", b);}
  22.  
  23.  
  24.     else if(c>b && c>a)
  25.         {
  26.          printf("The gretest number is %lf",c); }
  27.  
  28.     else if(a==b&& b==c)
  29.         printf("The numbers are equal");
  30. return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement