Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- setlocale(0, "");
- float B[100][100];
- float temp[100];
- int Y;
- int p=0;
- int n;
- int a=0;
- int k;
- int o=0;
- cout << "@@@@@@@@@@@@@@@@@@@@@ WELCOME USER @@@@@@@@@@@@@@@@@@@@@" << endl;
- cout << "Vvedite kol-vo ryadkov: " << endl;
- cin >> n;
- cout << "Vvedite kol-vo stolbcov: " << endl;
- cin >> k;
- cout << "-------------------------------------------------------------------------------" << endl;
- for (int i = 0; i < n; i++)
- {
- for (int j = 0; j < k; j++) {
- B[i][j] = rand() % 20 - 10;
- cout << "Arr[" << i << "," << j << "]=" << B[i][j] << '\t';
- }
- cout << endl;
- }
- cout << endl;
- cout << "-------------------------------------------------------------------------------" << endl;
- cout << "Koli4estvo ryadkov:= " << n << endl;
- cout << "-------------------------------------------------------------------------------" << endl;
- for (int i = 0; i < n; i++)
- {
- temp[i] = 0;
- for (int j = 0; j < k; j++) {
- if (B[i][j] < 0)
- {
- temp[i]++;
- }
- if (temp[i]>=) {
- cout << i << endl;
- }
- }
- }
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement