Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int num; cin >> num;
- int first = num / 100;
- int second = num / 10 % 10;
- int third = num % 10;
- for (int i = 1; i <= third; i++) {
- for (int j = 1; j <= second; j++) {
- for (int k = 1; k <= first; k++) {
- cout << i << " * " << j << " * " << k << " = " << (i * j * k) << ";" << endl;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment