Last active
October 24, 2024 11:03
-
-
Save m1irka/f2d3ecbaa189840f0d112a4454757079 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| int main() { | |
| int n1 = 1; | |
| while(n1 < 10) | |
| { | |
| for (int i = 1; i <= 10; ++i) | |
| { | |
| cout << n1 << " * " << i << " = " << n1 * i << endl; | |
| } | |
| n1++; | |
| } | |
| cout << "------------"; | |
| /* | |
| for (int i = 1; i < 10; ++i) | |
| { | |
| for (int j = 1; j <= 10; ++j) | |
| { | |
| cout << i << " * " << j << " = " << i * j << endl; | |
| } | |
| i++; | |
| } | |
| cout << "------------"; | |
| */ | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment