1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #include <iostream> using namespace std; int main() { int n1, n2; cin >> n1 >> n2; int n3 = n1 * (n2 % 10); int n4 = n1 * (n2 / 10 % 10); int n5 = n1 * (n2 / 100); cout << n3 << endl; cout << n4 << endl; cout << n5 << endl; cout << n5 * 100 + n4 * 10 + n3 << endl; return 0; } | cs |