Advertisement
NikaBang

Последовательность

May 15th, 2024 (edited)
487
0
28 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1. using System;
  2.  
  3. internal class Program
  4. {
  5.     static void Main(string[] args)
  6.     {
  7.         int startNumber = 5;
  8.         int numberMagnification = 7;
  9.         int finishNumber = 103;
  10.  
  11.         for (int i = startNumber; i <= finishNumber; i += numberMagnification)
  12.         {
  13.             Console.WriteLine(i);
  14.         }
  15.  
  16.         Console.ReadKey();
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement