SHARE
TWEET

problem_2

zfhridoy47 May 24th, 2019 (edited) 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2.  
  3. int main()
  4.  
  5. {
  6.     int a,b,c;
  7.  
  8.       printf("Enter three numbers: ");
  9.  
  10.     scanf("%d %d %d", &a,&b,&c);
  11.  
  12.     if(a>b && a>c)
  13.         printf("A is maximum\n");
  14.  
  15.     else if(b>a && b>c)
  16.         printf("B is maximum\n");
  17.  
  18.     else if(c>a && c>b)
  19.         printf("C is maximum\n");
  20.  
  21.     else if(a==b && b==c)
  22.             printf("All three numbers are same\n");
  23.     return 0;
  24.  
  25. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top