Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <stdio.h>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. setlocale(LC_ALL, "Russian");
  9. int n, m, k;
  10. cout << "Введите n: " << endl;
  11. cin >> n;
  12. cout << "Введите m: " << endl;
  13. cin >> m;
  14. cout << "Введите k: " << endl;
  15. cin >> k;
  16.  
  17. if ((n >= 1) && (m <= 5 * pow(10, 5) && (1 <= k <= n * m)))
  18. {
  19. int i, j;
  20. for (i = 1; i <= n; i++) {
  21. for (j = 1; j <= m; j++)
  22. cout << setw(3) << i * j;
  23. cout << endl;;
  24. }
  25. }
  26. system("pause");
  27. return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement