c++
Объяснение:
#include <iostream>
using namespace std;
const int m = 6;
const int n = 4;
int main() {
int a[m][n];
/*Ввод массива*/
for(int i = 0;i < m;i++) {
for(int j = 0;j < n;j++) {
cout << "A[" << i << "][" << j << "] = ";
cin >> a[i][j];
}
}
int sum = 0;
int mult = 1;
for(int i = 0;i < m;i++) {
for(int j = 0;j < n;j++) {
sum += a[i][j];
mult *= a[i][j];
}
}
cout << "Sum = " << sum << endl << "Mult = " << mult;
}
Поделитесь своими знаниями, ответьте на вопрос:
var
x: real;
function f (p:real):real;
begin
f:=sqr(p)-5*p/3;
end;
begin
write ('Введи x: ');
readln (x);
write (f(x));
end.