Ответ:
С++
#include <iostream>
using namespace std;
int main()
{
setlocale(LC_ALL, "rus");
int a, b, c;
cout<<"введите кол-во книг, стоящих на полке"<<endl;
cin>>a;
cout<<"введите количество полок"<<endl;
cin>>b;
c=a*b;
cout<<"кол-во книг в магизине: "<<с<<endl;
}
Объяснение:
чтобы найти количество книг нужно вычислить произведение кол-во книг на одной полке и кол-во полок.
using System;
namespace App {
class Program {
static void Main() {
Console.Write("V = ");
var V = double.Parse(Console.ReadLine());
Console.WriteLine("а = {0}", Math.Pow(V, 1 / 3.0));
Console.ReadKey();
}
}
}
Задание 5 получается D$2+$E5 =410
#include <iostream>using namespace std;
int main(){ int first, second; cout << "Enter f, s"; cin >> first >> second; cout << "sum: " << (first + second) << "\n\n"; system("pause");}
Поставь пожалуйста лучший ответ
Если нужна матрица другого размера, то надо исправить значения n=5; m=6 на нужные.
const
n=5;
m=6;
var
a:array[1..n,1..m] of integer;
i,j,min,max:integer;
begin
for i:=1 to n do
begin
for j:=1 to m do
begin
a[i,j]:=random(20);
write(a[i,j]:4);
if j=1 then
begin
min:=a[i,1];
max:=a[i,1];
end
else
begin
if a[i,j]<min then min:=a[i,j];
if a[i,j]>max then max:=a[i,j];
end;
end;
writeln('; min=',min,'; max=',max);
end;
end.