Ответы на вопрос:
Var d,m,i,all: integer; begin read(d,m); all: =0; for i: =12 downto (m+1) do begin if i=12 then all: =all+31; if i=11 then all: =all+30; if i=10 then all: =all+31; if i=9 then all: =all+30; if i=8 then all: =all+31; if i=7 then all: =all+31; if i=6 then all: =all+30; if i=5 then all: =all+31; if i=4 then all: =all+30; if i=3 then all: =all+31; if i=2 then all: =all+28; if i=1 then all: =all+31; end; if i=12 then all: =all+31-d; if i=11 then all: =all+30-d; if i=10 then all: =all+31-d; if i=9 then all: =all+30-d; if i=8 then all: =all+31-d; if i=7 then all: =all+31-d; if i=6 then all: =all+30-d; if i=5 then all: =all+31-d; if i=4 then all: =all+30-d; if i=3 then all: =all+31-d; if i=2 then all: =all+28-d; if i=1 then all: =all+31-d; writeln(all); end.
Популярно: Информатика
-
annapalko04407.08.2020 18:29
-
Ксю1111111114715.01.2022 00:10
-
стефания3119.03.2021 13:12
-
мария208124.08.2020 06:53
-
ВадимСап09.07.2021 08:13
-
belos198814.03.2023 05:52
-
muravyov191021.07.2020 14:25
-
lalaland531.03.2022 14:31
-
БиологКоля28.12.2020 16:45
-
qpdgjekelxnvi20.08.2022 06:51