Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <iomanip>
- using namespace std;
- int main() {
- const int n = 4;
- const int m = 3;
- int mas[n][m];
- bool s = 1;
- for (int j = 0; j < m; j++)
- {
- for (int i = 0; i < n; i++)
- {
- cout << "Massive=";
- cin >> mas[i][j];
- }
- cout << endl;
- }
- cout << "_____________\n";
- for (int i = 0; i < n; i++)
- {
- for (int j = 0; j < m; j++)
- {
- if (mas[i][j] >= mas[i][j + 1])
- {
- s = 0;
- }
- else
- {
- s = 1;
- break;
- }
- }
- }
- if (s == 0)
- {
- cout << " Ne vozrastaret";
- }
- if (s == 1)
- {
- cout << "vozrastaet";
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement