[코드업] 기초 100제 Java로 풀기 - 1082

곽준영·2023년 2월 23일
0
package codeup_100;

import java.util.Scanner;

public class codeup_82 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		String a = sc.nextLine();
		for(int i = 1; i <= 15; i++) {
			System.out.printf(a + " * %X = %X %n",i, Integer.parseInt(a, 16)*i);
		}
	}
}
profile
I want to become a versatile freelancer programmer💻

0개의 댓글