Ответы на вопрос:
uses crt;
var x, res: real;
funcNum: byte;
begin
write('X = ');
readln(x);
writeln();
TextColor(1);
writeln(' 1 - sin(x)');
TextColor(2);
writeln(' 2 - cos(x)');
TextColor(3);
writeln(' 3 - tg(x)');
TextColor(4);
writeln(' 4 - ctg(x)');
TextColor(7);
writeln();
write('Введите номер функции: ');
readln(funcNum);
case funcNum of
1:
begin
TextColor(1);
res := sin(x);
end;
2:
begin
TextColor(2);
res := cos(x);
end;
3:
begin
TextColor(3);
res := sin(x) / cos(x);
end;
4:
begin
TextColor(4);
res := cos(x) / sin(x);
end;
end;
TextColor(7);
writeln(res);
end.
Популярно: Информатика
-
sofikri200701.11.2021 04:18
-
расим2809.12.2022 14:12
-
Grisha708930.08.2022 08:49
-
borisovak46811.06.2022 18:24
-
Nina121106522.08.2020 03:44
-
Egor19060609.07.2022 05:07
-
73Женя9109.06.2021 10:46
-
shebkoch28.06.2022 18:42
-
romafomin15рома08.07.2021 01:04
-
Явсёзнаю027.10.2020 08:03