Подсчитать значение y по формуле y=3x^2-4, если x< 0 и по формуле y=1/3x^2-4. x меняется в интервале от -6 до 6 с шагом 1. вывести на экран значение x и y. через while !
198
476
Ответы на вопрос:
Uses crt; var x, y, startx, endx n: integer; begin x : = 1; startx : = -6; if x < 0 then while x < 0 do begin if startx < > endx x : = x + 1; y : = 3*sqr(x) - 4 end; if x > 0 then while x > 0 do begin if startx < > endx x : = x + 1; y : = (1/3*sqr(x)) - 4; end; writeln(x); writeln(y); end.
ответ:
1. сhildren study
speak simply when they listen to others and try to speak for themselves.
2. sometimes, on their own initiative, people learn different
skills or get information about something.
3. they can go
to a library or museum for information, but they
must not pass exams
Популярно: Информатика
-
sentyakovv20.09.2021 11:24
-
darasnezko29725.08.2022 22:42
-
Nastenka000304.03.2022 00:35
-
ruslikua308.01.2022 11:38
-
nodiramahammadz20.03.2022 01:05
-
Среднячёк02.10.2020 03:57
-
damirnikiforov08.01.2020 20:39
-
pilipenkorita318.11.2020 11:34
-
маринька22.06.2023 17:49
-
leramoisejenko22.06.2023 19:11