Skip to content

Instantly share code, notes, and snippets.

@m1irka
Last active October 24, 2024 11:03
Show Gist options
  • Select an option

  • Save m1irka/f2d3ecbaa189840f0d112a4454757079 to your computer and use it in GitHub Desktop.

Select an option

Save m1irka/f2d3ecbaa189840f0d112a4454757079 to your computer and use it in GitHub Desktop.
#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