Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
16846 2024-04-19 10:45:31 sheikh_hossainn Max Number C 0 ms 0 kb Compilation Error
Test Cases
CPU Memory Verdict
1 0 ms 0 kb Compilation Error
2 - - Skipped
3 - - Skipped
4 - - Skipped
5 - - Skipped
6 - - Skipped
7 - - Skipped
Source Code
program.c
Download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. int T;
  7. int a, b, c;
  8. scanf("%d", &T);
  9.  
  10. while(T--){
  11. scanf("%d%d%d", &a, &b, &c);
  12.  
  13. if(a > b && a > c){
  14. printf("%d", a);
  15. break;
  16. }
  17. else if(b > a && b > c){
  18. printf("%d", max);
  19. break;
  20. }
  21. else{
  22. printf("%d\n", max);
  23. break;
  24. }
  25. }
  26. return 0;
  27. }
  28.