Last active
May 14, 2024 18:25
-
-
Save MagSosiq/6834630afabc4357a1bed71b96d11800 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; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace HW1 | |
{ | |
internal class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.InputEncoding = Encoding.Unicode; | |
Console.OutputEncoding = Encoding.Unicode; | |
int lastNumber = 103; | |
int startingNumber = 5; | |
int summableNumber = 7; | |
for (int i = startingNumber; i <= lastNumber; i += summableNumber) | |
{ | |
Console.WriteLine(i); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Я использовал for потому, что в ней можно удобно выставить начальную точку отсчёта + Я знал до каких пор нужно выполнять код, для этого мне удобно подошёл for.