fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a,b,c,d;
  5. //printf("enter the number a,b,c,d");
  6. scanf("%d",&a);
  7. scanf("%d",&b);
  8. scanf("%d",&c);
  9. scanf("%d",&d);
  10. if (a>b && a>c && a>d)
  11. printf("your greatest number is a %d",a);
  12. else if (b>a && b>c && b>d)
  13. printf("your greatest number is b %d",b);
  14. else if (c>a && c>b && c>d)
  15. printf("your greatest number is c %d",c);
  16. else
  17. printf("your greatest number is d %d",d);
  18.  
  19.  
  20. return 0;
  21. }
  22.  
Success #stdin #stdout 0s 5464KB
stdin
98
878
67
8
stdout
your greatest number is b 878