fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int a, b, c;
  6. printf("Enter three numbers: \na: ");
  7. scanf("%d", &a);
  8. printf("b: ");
  9. scanf("%d", &b);
  10. printf("c: ");
  11. scanf("%d", &c);
  12. if (a > b && a > c)
  13. printf("Biggest number is %d", a);
  14. if (b > a && b > c)
  15. printf("Biggest number is %d", b);
  16. if (c > a && c > b)
  17. printf("Biggest number is %d", c);
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 5280KB
stdin
43
45
37
stdout
Enter three numbers: 
a: b: c: Biggest number is 45