Skip to content

Instantly share code, notes, and snippets.

@Strelok78
Last active April 8, 2025 12:15
Show Gist options
  • Save Strelok78/b6e02c2585e74311b608bee3aea3b18b to your computer and use it in GitHub Desktop.
Save Strelok78/b6e02c2585e74311b608bee3aea3b18b to your computer and use it in GitHub Desktop.
Вывод последовательности с помощью цикла с заданными начальным, максимальными значениями и шагом
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