Ответы на вопрос:
Program p1; uses crt; var a,ed,des,sot,tis,s,p,max: longint; begin clrscr; writeln('введите четырех значное число'); readln(a); ed: =a mod 10; des: =a div 10 mod 10; sot: =a div 100 mod 10; tis: =a div 1000; s: =0; p: =1; p: =ed*des*sot*tis; s: =ed+des+sot+tis; writeln('произведение чисел = ',p); writeln('сумма чисел = ',s); if (ed> des) and (ed> sot) and (ed> tis) then max: =ed; if (des> ed) and (des> sot) and (des> tis) then max: =des; if (sot> ed) and (sot> des) and (sot> tis) then max: =sot; if (tis> ed) and (tis> des) and (tis> sot) then max: =tis; writeln('максимальное число = ',max); readln; end.
Популярно: Информатика
-
XxXKotikXxX02.10.2022 14:18
-
QwErTyля27.08.2022 22:15
-
JanetJackson527.01.2022 14:25
-
ALIONA202023.03.2022 00:15
-
Лерой0410.12.2022 12:56
-
alexxxxarchenko18.04.2022 16:53
-
PORCH148823.09.2022 04:55
-
nslava78314.06.2020 05:19
-
alexstew110.03.2021 14:52
-
тамок06.08.2021 09:31