#include <iostream>

using namespace std;

void cal(int A,int B){
    int a = B/100;
    int b = (B-(a*100))/10;
    int c = B % 10;

    cout << A*c << endl;
    cout << A*b << endl;
    cout << A*a << endl;
    cout << A*B;
}

int main(){
    int A,B;

    cin >> A >> B;

    cal(A,B);

    return 0;
}

'백준알고리즘' 카테고리의 다른 글

백준 1065 C++  (0) 2021.06.30
백준 4673 C++  (0) 2021.06.28
백준 4344 C++  (0) 2021.06.28
백준 10869 C++  (0) 2021.06.28
백준 1546번 C++  (0) 2021.06.28

+ Recent posts