#include <iostream>
using std::cout;
using std::cin;
int main()
{
setlocale (LC_ALL,"Russian");
int x,y;
cout <<"X: ";
cin >> x;
cout <<"Y: ";
cin >> y;
cout <<"Точка А расположена";
if (x==0 && y==0)
cout <<" в начале координат\n";
else if (x==0)
cout <<" на оси Y\n";
else if (y==0)
cout <<" на оси X\n";
else if (x>0 && y>0)
cout <<" в 1 угле\n";
else if (x<0 && y>0)
cout <<" во 2 угле\n";
else if (x<0 && y<0)
cout <<" в 3 угле\n";
else cout <<" в 4 угле\n";
return 0;
}
1. - б) г) е) и смотря на каком языке программирования еще и д)
2. - а) Real б) Integer в) Real г) Integer
3. - По порядку: Integer, Real, Integer, Integer, Real
4.
var r , S : real;
begin
writeln('Введите радиус: ');
readln(r);
S:= pi*r*r;
writeln('Площадь круга: ',S);
end.
10.
var massa, a, b, c : real;
begin
writeln('Введите массы трёх слонов: ');
readln(a,b,c);
massa:=(a+b+c)/3;
writeln('Средняя масса слона: ', massa);
end.
Var
n,e,d,s,sum: integer;
begin
writeln ('vvedi cislo n');
read (n);
if (n<100) or (n>999) then writeln ('False');
if (n>100) and (n<999) then
begin
e:= (n mod 10);
writeln ('e',e);
s:=(n div 100);
writeln ('s',s);
d:=(n div 10)-s*10;
writeln ('d',d);
sum:=s+d+e;
writeln ('sum',sum);
if sum=13 then writeln ('Enter')
else
writeln ('Lock');
end;
end.
N=2^i - количество символов
64=2^i, i=5