-
[java]백준 상근이의 친구들 5717번알고리즘 문제풀이/백준(자바) 2023. 5. 27. 23:47
코드
import java.util.Scanner; public class BOJ_5717 { public static void main(String[] args) { Scanner in = new Scanner(System.in); while(true){ int a = in.nextInt(); int b = in.nextInt(); if(a==0 && b==0){ break; }else{ System.out.println(a+b); } } in.close(); } }
링크
https://www.acmicpc.net/problem/5717
'알고리즘 문제풀이 > 백준(자바)' 카테고리의 다른 글
[java]백준 Identifying tea 11549번 (0) 2023.05.29 [java]백준 녹색거탑 24723번 (0) 2023.05.28 [java]백준 과자 10156번 (0) 2023.05.26 [java]백준 평균 1546번 (0) 2023.05.25 [java]백준 줄번호 4470번 (0) 2023.05.24