fork download
  1. #include <stdio.h>
  2. int main(){
  3. int a,b,c;
  4. scanf("%d %d %d",&a,&b,&c);
  5. printf("Enter the first nu.%d\n",a);
  6. printf("Enter the second nu.%d\n",b);
  7. printf("Enter the third nu.%d\n",c);
  8. if(a>b&&a>c)
  9. {
  10. printf("a is greater than b and c");
  11. }
  12. if(b>a&&b>c)
  13. {
  14. printf("b is greater than a and c");
  15. }
  16. if(b>a&&b>c)
  17. {
  18. printf("c is greater than a and b");
  19. }
  20. else {
  21. printf("Please enter the comparable value");
  22. }
  23. return 0;
  24. }
Success #stdin #stdout 0s 5284KB
stdin
10 11 12
stdout
Enter the first nu.10
Enter the second nu.11
Enter the third nu.12
Please enter the comparable value