
알고리즘 분류/Step3 반복문
</Step3_2> 10950 A + B JAVA
이번 문제는 T의 값만큼 반복문을 진행하면 되는 간단한 문제이다. import java.util.*; public class Step3_2 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int T = sc.nextInt(); for(int i = 0; i < T; i++) { int a = sc.nextInt(), b = sc.nextInt(); System.out.println(a + b); } sc.close(); } }