Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program p238;
- uses crt;
- var
- i: integer;
- y, x, a, b: real;
- begin
- for i := 1 to 9 do
- begin
- write(i, '. x = ');
- readln(x);
- write(' a = ');
- readln(a);
- write(' b = ');
- readln(b);
- if x < b then
- begin
- y := abs(sqrt(x*x*x) + sin(a + x));
- writeln(' y = ', y);
- end
- else
- begin
- y := sqrt(x) + cos(x );
- writeln(' y = ', y);
- end;
- end;
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement