a = 1
for i = 13 downto 5 do
a = a + 1;
Проходим по циклу:
i = 13; a = 2;
i = 12; a = 3;
i = 11; a = 4;
i = 10; a = 5;
i = 9; a = 6;
i = 8; a = 7;
i = 7; a = 8;
i = 6; a = 9;
i = 5; a = 10;
Ответ: 10
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
a = 1
for i = 13 downto 5 do
a = a + 1;
Проходим по циклу:
i = 13; a = 2;
i = 12; a = 3;
i = 11; a = 4;
i = 10; a = 5;
i = 9; a = 6;
i = 8; a = 7;
i = 7; a = 8;
i = 6; a = 9;
i = 5; a = 10;
Ответ: 10