일상

2739 : 구구단

STUDYING,,, 2021. 7. 26. 23:06
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int result = 0;
		
		for(int i =1 ; i<10 ; i++) {
			result = num*i;
					System.out.println(num +" * "+i+" = "+ result);
		}
		
		



	}
}

'일상' 카테고리의 다른 글

8393 : 합  (0) 2021.07.26
10950 : A + B - 3  (0) 2021.07.26
2884 : 알람 시계  (0) 2021.07.23
14681 : 사분면 고르기  (0) 2021.07.23
2753 : 윤년  (0) 2021.07.23