Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <stdio.h>
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "Russian");
- int n, m, k;
- cout << "Введите n: " << endl;
- cin >> n;
- cout << "Введите m: " << endl;
- cin >> m;
- cout << "Введите k: " << endl;
- cin >> k;
- if ((n >= 1) && (m <= 5 * pow(10, 5) && (1 <= k <= n * m)))
- {
- int i, j;
- for (i = 1; i <= n; i++) {
- for (j = 1; j <= m; j++)
- cout << setw(3) << i * j;
- cout << endl;;
- }
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement