Notice
Recent Posts
Recent Comments
Link
목록10817 (1)
새로운시작
백준알고리즘 NO.10817 세 수
NO.10817 문제세 정수 A, B, C가 주어진다. 이 때, 두 번째로 큰 정수를 출력하는 프로그램을 작성하시오. 입력첫째 줄에 세 정수 A, B, C가 공백으로 구분되어 주어진다. (1 ≤ A, B, C ≤ 100)출력두 번째로 큰 정수를 출력한다. [JAVA] import java.util.Scanner; public class no10817 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if(a >= 1 && b >= 1 && c >=1 && a c) System.out.println..
기초/알고리즘
2017. 7. 12. 10:56