euisblue
2588. 곱셈

2588 - 곱셈

C++

1#include <bits/stdc++.h> 2using namespace std; 3int main(void) { 4 ios::sync_with_stdio(0); 5 cin.tie(0); 6 7 int a, b; 8 cin >> a >> b; 9 int x = b / 100; 10 int y = (b % 100) / 10; 11 int z = b % 10; 12 13 cout << a*z << endl; 14 cout << a*y << endl; 15 cout << a*x << endl; 16 cout << a*b << endl; 17 return 0; 18}