Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int number = 5;
- int increment = 7;
- int higher = 100;
- // выбираем цикл while,
- // потому что не знаем количество итераций,
- // но знаем условие завершения цикла
- while (number < higher)
- {
- Console.WriteLine(number);
- number += increment;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement