Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using std::cout;
- using std::cin;
- using std::endl;
- void main()
- {
- // Таблица умножения
- for (int n = 9, i = 1; i <= n; i++)
- {
- for (int j = 1; j <= n; j++)
- {
- cout << i << " * " << j << " = ";
- cout << i * j << endl;
- }
- if (i % n != 0) cout << endl;
- }
- //Таблица Пифагора
- /*cout << "\t Pythagorean table" << endl << endl;
- for (int i = 1, n = 10; i <= n; i++)
- {
- for (int j = 1; j <= n ; j++)
- {
- if ((i * j) < 10) cout << " ";
- if ((i * j) < 100) cout << " ";
- cout << i * j << " ";
- }
- cout << endl << endl;
- }*/
- }
Add Comment
Please, Sign In to add comment