Ответы на вопрос:
Var a: array[1..100]of integer; nol,chet,nechet,i,n: integer; begin readln(n); for i: =1 to n do begin readln(a[i]); if (a[i] mod 2=0)and(a[i]< > 0) then chet: =chet+1; if (a[i] mod 2=1) then nechet: =nechet+1; if a[i]=0 then nol: =nol+1; end; writeln('четных : ',chet,' ','нечетных : ',nechet,',' ',нулевых : ',nol); end.
Популярно: Информатика
-
NecChanel13.12.2022 11:58
-
SonyaYT03.05.2022 11:14
-
veronikasabrin28.03.2021 12:03
-
gghggggg107.09.2020 14:03
-
GenGis08.03.2022 14:28
-
Yulia180521.04.2022 20:33
-
anastasia1medvedeva14.07.2022 17:51
-
gonigh04.06.2022 05:12
-
ra1si1ka107.03.2020 09:17
-
лимон250908.02.2023 09:07