fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a,b,c;
  6. scanf("%d %d %d" ,&a, &b, &c);
  7. if(a>b && a>c){
  8. printf("%d is greater\n", a);
  9. }else if (b > a && b > c) {
  10. printf("%d is greater\n", b);
  11. } else {
  12. printf("%d is greater\n", c);
  13. }
  14.  
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0.01s 5304KB
stdin
32 43 12
stdout
43 is greater