Зміст курсу
C# Basics
C# Basics
Practicing Do-While Loop
There are two variables called numberA
and numberB
. The program is supposed to count from numberA
to numberB
.
If numberA
is bigger than numberB
then it should decrement the value of numberA
every step. If numberA
is smaller than numberB
then it should increment numberA
every step.
Also write the appropriate condition to end the loop.
main
- The loop should continue as long as the numbers are NOT equal (
!=
).
main
Все було зрозуміло?