Advertisement
Guest User

Untitled

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