Last active
April 8, 2025 12:15
-
-
Save Strelok78/b6e02c2585e74311b608bee3aea3b18b to your computer and use it in GitHub Desktop.
Вывод последовательности с помощью цикла с заданными начальным, максимальными значениями и шагом
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace iJuniorPractice; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int startValue = 5; | |
int stepValue = 7; | |
int maxValue = 103; | |
for (int i = startValue; i <= maxValue; i += stepValue) | |
{ | |
Console.WriteLine(i); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment