Перевести программу с Pascal на С.
var
x, sum, s: real;
i, n: integer;
begin
sum := 0;
read(n, x);
s := 1;
for i := 1 to n do
begin
s := s * sin(x);
sum := sum + s;
end;
writeln(sum);
end.
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.