Объяснение:
#include <iostream>
#include <ctime>
using namespace std;
int main()
{
srand(time(NULL));
int m, n;
cin >> m >> n;
if (m <= 0 || n <= 0) return 0;
int** arr = new int* [m];
for (int i = 0; i < m; i++)
{
arr[i] = new int[n];
}
cout << endl;
for (int i = 0; i < m; i++)
{
for (int j = 0; j < n; j++)
{
arr[i][j] = rand() % 11 - 5;
cout.width(3);
cout << arr[i][j];
}
cout << endl;
}
cout << endl;
int belowZero = 0;
for (int i = 0; i < m; i++)
{
int sum = 0;
for (int j = 0; j < n; j++)
{
sum += arr[i][j];
}
if (sum < 0) belowZero++;
}
cout << " Answer: " << belowZero << endl;
for (int i = 0; i < m; i++)
{
delete[] arr[i];
}
delete[] arr;
}
print('--- 1 ---')
b = float(input('Введите b: '))
a = b**3/9-6.4*(b+8)+3*b/4
print('a =', a)
print()
print('--- 2 ---')
a = float(input('Введите a: '))
b = float(input('Введите b: '))
d = a**3*b/7-2*a*b**2*(a+b)
print('d =', d)
print()
print('--- 3 ---')
a = float(input('Введите a: '))
b = float(input('Введите b: '))
q = (3*a**3-2*a*b+b**2)/(2*a*(3*a-b))
print('q =', q)
print()
print('--- 4 ---')
x = float(input('Введите x: '))
y = float(input('Введите y: '))
k = x**3-4*x*y*(x+y**2)
print('k =', k)
print()
print('--- 5 ---')
v = float(input('Введите v: '))
h = abs(v+1.7)*(2*v+3)
print('h =', h)
дадажвжажажсдажв
+ и
Объяснение:
пока балабол