rusi/test_ru/continue.c

16 lines
420 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// contиnue.c - Проверка оператора contиnue
цел главн(){
цел и;
цел сум = 0;
для (и = 0; и < 10; и = и + 1) {
если (и == 5) {
продолжи;
}
сум = сум + и;
}
// сум = 0+1+2+3+4+6+7+8+9 = 40 (пропустили 5)
если (сум == 40) {
возврат 0;
}
возврат 1;
}