Var
ch, mo, di: longint;
otvet, s: string;
begin
readln(ch);
otvet := '';
while ch <> 0 do
begin
di := ch div 8;
mo := ch mod 8;
str(mo, s);
otvet := s + otvet;
ch := di;
end;
writeln(otvet);
end.
#include <iostream>
using namespace std;
int main()
{
float x, y, c;
cin>>x>>y;
if (x>y)
{
c = x;
x = 2*x*y;
y = (c+y) / 2.0;
cout<<"x>y"<<endl;
}
else
{
c = x;
x = (x+y)/2.0;
y = 2*c*y;
cout<<"x<y"<<endl;
}
cout<<"x = "<<x<<endl;
cout<<"y = "<<y<<endl;
system("pause");
return 0;
}
6- c
8-c
9-b
10-a
В 10 не уверен.