Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
16857 2024-04-19 13:42:10 dnt Max Number Java 104 ms 38464 kb Wrong Answer - 1
Test Cases
CPU Memory Verdict
1 104 ms 38464 kb Wrong Answer
2 - - Skipped
3 - - Skipped
4 - - Skipped
5 - - Skipped
6 - - Skipped
7 - - Skipped
Source Code
program.java
Download
  1. import java.util.Scanner;
  2.  
  3. public class Practice{
  4. public static void main(String[] args) {
  5.  
  6. Scanner sc = new Scanner(System.in);
  7. int a = sc.nextInt();
  8. int b = sc.nextInt();
  9. int c = sc.nextInt();
  10. if(a>b && a>c){
  11. System.out.println(a);
  12. }
  13. if(b>a && b>c){
  14. System.out.println(b);
  15. }
  16. if(c>a && c>b){
  17. System.out.println(c);
  18. }
  19.  
  20. }
  21. }
  22.  
  23.  
  24.