Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. setlocale(0, "");
  7. float B[100][100];
  8. float temp[100];
  9. int Y;
  10. int p=0;
  11. int n;
  12. int a=0;
  13. int k;
  14. int o=0;
  15. cout << "@@@@@@@@@@@@@@@@@@@@@ WELCOME USER @@@@@@@@@@@@@@@@@@@@@" << endl;
  16. cout << "Vvedite kol-vo ryadkov: " << endl;
  17. cin >> n;
  18. cout << "Vvedite kol-vo stolbcov: " << endl;
  19. cin >> k;
  20. cout << "-------------------------------------------------------------------------------" << endl;
  21. for (int i = 0; i < n; i++)
  22. {
  23.  
  24.  
  25. for (int j = 0; j < k; j++) {
  26. B[i][j] = rand() % 20 - 10;
  27.  
  28.  
  29. cout << "Arr[" << i << "," << j << "]=" << B[i][j] << '\t';
  30.  
  31. }
  32. cout << endl;
  33.  
  34.  
  35. }
  36. cout << endl;
  37. cout << "-------------------------------------------------------------------------------" << endl;
  38. cout << "Koli4estvo ryadkov:= " << n << endl;
  39. cout << "-------------------------------------------------------------------------------" << endl;
  40.  
  41. for (int i = 0; i < n; i++)
  42. {
  43. temp[i] = 0;
  44. for (int j = 0; j < k; j++) {
  45.  
  46. if (B[i][j] < 0)
  47. {
  48. temp[i]++;
  49.  
  50. }
  51. if (temp[i]>=) {
  52. cout << i << endl;
  53.  
  54. }
  55.  
  56. }
  57.  
  58. }
  59.  
  60. system("pause");
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement