알고리즘 분류/Step3 반복문

알고리즘 분류/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(); } }

알고리즘 분류/Step3 반복문

</Step3_1> 2739 구구단 JAVA

이번 문제는 간단하므로 자세한 설명은 생략하겠다. import java.util.Scanner; public class Step3_1 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int dan = sc.nextInt(); for(int i = 1; i

Berkleeboston
'알고리즘 분류/Step3 반복문' 카테고리의 글 목록 (2 Page)