Ответы на вопрос:
1вариант: if (a> 0) or (a=0) and (b> 0) or (b=0) and (c> 0) or (c=0) then s: =a+b+c else if (a> 0) or (a=0) and (b> 0) or (b=0) and (c< 0) then s: =a+b else if (a> 0) or (a=0) and (c> 0) or (c=0) and (b< 0) then s: =a+c else if (b> 0) or (b=0) and (c> 0) or (c=0) and (a< 0) then s: =b+c else if (a< 0) and (b< 0) and (c> 0) or (c=0) then s: =c else if (a< 0) and (c< 0) and (b> 0) or (b=0) then s: =b else s: =a; 2 вариант: if (a> 0) or (a=0) then s: =s+a; if (b> 0) or (b=0) then s: =s+b; if (c> 0) or (c=0) then s: =s+c;
Популярно: Информатика
-
baxitclash07.03.2022 06:48
-
светилек14.08.2020 16:00
-
Nastya08050307.10.2022 15:31
-
pinelike09.03.2020 06:17
-
Микарусский07.02.2023 21:36
-
DarinaKachilova091020.04.2021 02:32
-
СешМАНИ17.03.2023 11:56
-
Yana2005657891030.12.2022 16:33
-
ezek514.06.2023 09:28
-
diankapazyukа17.07.2021 02:01