Ответ в прилагаемом фото.
#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;
}
Var C2, C1: longint;
a, b, n: integer;
begin
readln(a, b, n);
b := b + a * 100;
C1 := b * n;
C2 := C1 mod 100;
C1 := C1 div 100;
writeln(C1, ',', C2);
<span>end.
Вот так =)</span>