-
-
Save hajipy/6624469 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Hikaku{ | |
public static void main(String[] a){ | |
int A = 2; | |
int B = 10; | |
int C = 6; | |
if(A>B && A>C){ | |
if(B>C){ | |
System.out.println("最大が"+A+"、次点が"+B); | |
}else{ | |
System.out.println("最大が"+A+"、次点が"+C); | |
}else{ | |
if(B>C && B>A){ | |
if(A>C){ | |
System.out.println("最大が"+B+"、次点が"+A); | |
}else{ | |
System.out.println("最大が"+B+"、次点が"+C); | |
} | |
else{ | |
if(A>B){ | |
System.out.println("最大が"+C+"、次点が"+A); | |
}else{ | |
System.out.println("最大が"+C+"、次点が"+B); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment