Last active
February 14, 2023 20:48
-
-
Save GigaOrts/642d1da8d69f7f44285fe7937ba967fb to your computer and use it in GitHub Desktop.
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) | |
{ | |
int cycleStart = 5; | |
int cycleEnd = 96; | |
int cycleStep = 7; | |
for (int i = cycleStart; i <= cycleEnd; i += cycleStep) | |
Console.Write(i + " "); | |
} | |
} | |
} |
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
Выбран цикл for, так как задано количество итераций и шаг, а не просто сухое условие, | |
это легко решается с for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment