Skip to content

Instantly share code, notes, and snippets.

@tsk-arh
Last active January 9, 2024 08:09
Show Gist options
  • Save tsk-arh/de2b4b5db3f166c924fbb631c52b4558 to your computer and use it in GitHub Desktop.
Save tsk-arh/de2b4b5db3f166c924fbb631c52b4558 to your computer and use it in GitHub Desktop.
ЗАДАНИЕ Последовательность
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp4
{
internal class Program
{
static void Main(string[] args)
{
int startNumber = 5;
int endNumber = 96;
int argument = 7;
for (int nextNumberWrite = startNumber; nextNumberWrite <= endNumber; nextNumberWrite += argument)
{
Console.WriteLine(nextNumberWrite);
}
Console.ReadLine();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment