Loading...
Submission
# When Author Problem Language CPU Memory
3927 2022-01-01 10:23:23 abidhussen351 Max Number C 2 ms 1556 kb Wrong Answer - 1
Test Cases
# CPU Memory Points
1 2 ms 1556 kb 0 Wrong Answer
2 0 ms 0 kb 0 Skipped
3 0 ms 0 kb 0 Skipped
4 0 ms 0 kb 0 Skipped
5 0 ms 0 kb 0 Skipped
6 0 ms 0 kb 0 Skipped
7 0 ms 0 kb 0 Skipped
Source Code
  1. #include<stdio.h>
  2. void main()
  3. {
  4. int num1,num2,num3,n,max;
  5. printf("Enter the number of test case :");
  6. scanf("%d",&n);
  7. printf("enter three number:");
  8. scanf("%d %d %d",&num1,&num2,&num3);
  9.  
  10. if(num1>num2 && num1>num3)
  11. {
  12. printf("%d is the max number.",num1);
  13. }
  14. else if(num2>num1 && num2>num3)
  15. {
  16. printf("%d is the max number",num2);
  17. }
  18. else
  19. printf("%d is the max number.",num3);
  20. }
  21.