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