fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a,b,c;
  5. printf("Enter the numbers: ");
  6. scanf("%d%d%d",&a,&b,&c);
  7. if(a>b && b>c){
  8. printf("a is greatest");
  9. }
  10. if(b>c && c>a){
  11. printf("b is greatest");
  12. }
  13. else{
  14. printf("c is greatest");
  15. }
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0.01s 5288KB
stdin
20
40
60
stdout
Enter the numbers: c is greatest