Last active
August 29, 2025 19:56
-
-
Save Attosius/d3263b9c446a6fe96f2b5679c0d021d7 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
using System; | |
namespace IJuniorTasks | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var startNumber = 5; | |
var increment = 7; | |
var maxNumber = 103; | |
var currentNumber = startNumber; | |
for (int i = 0; i < maxNumber; i+=increment) | |
{ | |
Console.Write($"{currentNumber} "); | |
currentNumber += increment; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment