Skip to content

Instantly share code, notes, and snippets.

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