elesis's haunt
2739 구구단 본문
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
sc.close();
for(int i=1; i<10; i++) {
System.out.println(N+" * "+i+" = "+N*i);
}
}
}
for ( 변수선언 및 초기화; 조건식; 증감식 )
'백준~문풀 후 최적화 추가~ > 단계별로 풀어보기' 카테고리의 다른 글
8393 합 (0) | 2021.04.19 |
---|---|
10950 A+B-3 (0) | 2021.04.19 |
2884 알람 시계 (0) | 2021.04.15 |
14681 사분면 고르기 (0) | 2021.04.15 |
2753 윤년 (0) | 2021.04.15 |
Comments