๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐Ÿš€ Algorithm/BOJ

[๋ฐฑ์ค€] 2588

 

 

 

 

 

 

 

 

 

 

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int first = sc.nextInt();
        int sec = sc.nextInt(); //์ž…๋ ฅ

        int a = sec%10;
        int b = (sec%100)/10;
        int c = sec/100;

        System.out.println(first*a);
        System.out.println(first*b);
        System.out.println(first*c);
        System.out.println(first*sec);
        //sc.close(); ์ƒ๋žต
    }
}

'๐Ÿš€ Algorithm > BOJ' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

10952 10951  (0) 2021.08.15
2439  (0) 2021.08.15
10950  (0) 2021.08.14
2884  (0) 2021.08.14
2753  (0) 2021.08.12