Advertisement
Guest User

Untitled

a guest
Apr 26th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <iostream>
  3. #include <iomanip>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8. const int n = 4;
  9. const int m = 3;
  10. int mas[n][m];
  11. bool s = 1;
  12. for (int j = 0; j < m; j++)
  13. {
  14. for (int i = 0; i < n; i++)
  15. {
  16. cout << "Massive=";
  17. cin >> mas[i][j];
  18. }
  19. cout << endl;
  20. }
  21. cout << "_____________\n";
  22. for (int i = 0; i < n; i++)
  23. {
  24. for (int j = 0; j < m; j++)
  25. {
  26. if (mas[i][j] >= mas[i][j + 1])
  27. {
  28. s = 0;
  29. }
  30. else
  31. {
  32. s = 1;
  33. break;
  34. }
  35. }
  36. }
  37. if (s == 0)
  38. {
  39. cout << " Ne vozrastaret";
  40. }
  41. if (s == 1)
  42. {
  43. cout << "vozrastaet";
  44. }
  45. system("pause");
  46. return 0;
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement