Notice
Recent Posts
Recent Comments
Link
목록4단계 (1)
drexqq
[Java, 자바] 백준알고리즘 단계별로 풀기 - 4단계
10952번 두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오. import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); while (true) { int a = sc.nextInt(); int b = sc.nextInt(); if (a==0 && b==0) { break; } System.out.println(a+b); } } } 10951번 입력이 끝날 때까지 A+B를 출력하는 문제. EOF에 대해 알아 보세요. import java.util.Scanner; public class M..
공부노트/개인공부!
2020. 5. 30. 17:19