Program Lab2 (Input, Output);
Var
x, y: real;
Begin
writeln('Please enter value for x');
readln(x);
y := sin(frac(x / 2)) * sqr(cos(frac(x / 2)));
writeln('Result is y=', y);
End.
UHJvZ3JhbSBMYWIyIChJbnB1dCwgT3V0cHV0KTsKVmFyCiAgeCwgeTogcmVhbDsKQmVnaW4KICB3cml0ZWxuKCdQbGVhc2UgZW50ZXIgdmFsdWUgZm9yIHgnKTsKICByZWFkbG4oeCk7CiAgeSA6PSBzaW4oZnJhYyh4IC8gMikpICogc3FyKGNvcyhmcmFjKHggLyAyKSkpOyAKICB3cml0ZWxuKCdSZXN1bHQgaXMgeT0nLCB5KTsgCkVuZC4=