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;
Романенко
26.03.2021
1 1.)8: 2=4 2.)4: 2=2 3.)2: 2=1 4.)12 5.)12: 2=6 2 алгоритм: 12212 лучше не !
200ответ: 11001000
489ответ: 111101001
543
ответ: 1000011111
950ответ: 1110110110
1025
ответ: 10000000001