Ответ:
Объяснение:
var
x, y:real;
begin
//x:=5;
readln(x);
if (x < -1) then y:=x+2;
if ((x >= -1) and (x <= 2)) then y:=x*x;
if (x > 2) then y:=6-x;
writeln(y);
end.
1)команда,результат:36,команда×2,результат ;72,команда,результат:7
Электронную таблицу в Excel, определяющую по введенному коду региона России полное название данного см файл
#include <iostream>
using namespace std;
int main() {
cout << 7 * 8 / 2; // S = a * h / 2;
return 0;
}
=========================================================
#include <iostream>
using namespace std;
int main() {
int d;
cout << "d = ";
cin >> d;
cout << d * 12 / 2; // S = d1 * d2 / 2;
return 0;
}
=========================================================
#include <iostream>
using namespace std;
int main() {
int ml, botb;
cout << "Enter middle line = ";
cin >> ml;
cout << "Enter the bottom base = ";
cin >> botb;
cout << "The top base = " << 2 * ml - botb;
return 0;
}