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