본문 바로가기

Programming/BaekJoon

[C++] 백준 2588번 : 곱셈


https://www.acmicpc.net/problem/2588




#include <iostream>


using namespace std;

int main() {


int num1, num2;

cin >> num1 >> num2;


cout << num1 * (num2 % 10) << "\n";

cout << num1 * ((num2 % 100)/ 10) << "\n";

cout << num1 * (num2 / 100) << "\n";

cout << num1 * num2 << "\n";


}