Last active
February 4, 2025 14:32
-
-
Save ALJEMor/052f404636c111dc1881d9e461fe76fe to your computer and use it in GitHub Desktop.
04.04.2025_последовательность
This file contains 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 Последовательность_чисел | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
/*Надо написать программу (используя циклы, обязательно пояснить выбор вашего цикла), | |
* чтобы она выводила следующую последовательность 5 12 19 26 33 40 47 54 61 68 75 82 89 96 103 | |
*/ | |
int startNumber = 5; | |
int endNumber = 103; | |
int sequenceCondition = 7; | |
for (int number = startNumber; number <= endNumber; number += sequenceCondition) | |
{ | |
Console.WriteLine(number); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment