ответ:
во-первых в начале не сin < < sys, а сin > > s;
во-вторых ты объявил/а все переменные в первом ифе, а значит в других функциях они уже не видны, поэтому стоит их объявить
в-третьих переменная g не используется, поэтому можно ее и не объявлять
вот код:
#include
#include
using namespace std;
int main() {
int sys;
float a, b, c, d, e, sum, mid, pi=3.14, r;
cout < < "if you would midle write-1, if place of circle-2" < < endl;
cin > > sys;
if(sys == 1) {
cout < < "input first midle" < < endl;
cin > > a;
cout < < "inpur second midle" < < endl;
cin > > b;
cout < < "input third midle" < < endl;
cin > > c;
cout < < "input thord midle" < < endl;
cin > > d;
cout < < "input fived midle" < < endl;
cin > > e;
sum = a + b + c + d + e;
mid = sum / 5;
cout < < "your midle: ";
cout < < mid;
}
else{
if(sys == 2) {
cout < < "this is the circle area formula s=pi*r^2" < < endl;
cout < < "input radius(r)" < < endl;
cin > > r;
cout < < pi * r * r;
}
}
return 0;
}
Поделитесь своими знаниями, ответьте на вопрос:
Решите паскали, вариант 5beginwritelnend.
ответ:
1.
2 8 10 16
01 75 61 3d
101011 53 43 28
1101010 152 106 6a
101101 55 45 2d
2. семиричная
3. 191
4. а) 100 б)1110
объяснение: