Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Practicing break and continue | Loops
C# Basics
course content

Зміст курсу

C# Basics

Practicing break and continue

There is a for-loop without a default ending condition. Inside the loop, skip all the even iterations and in case of odd iterations increment the value of oddNumbers. Stop the loop as soon as the value of oddNumbers equals 27. Use break and continue for this purpose.

cs

main

  1. A number x is even if it satisfies the condition x % 2 == 0.
cs

main

Все було зрозуміло?

Секція 4. Розділ 8
We're sorry to hear that something went wrong. What happened?
some-alt