Advertisement
Lexvolk

Untitled

Mar 30th, 2023
646
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace CJunior
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int step = 7;
  14.             int startNumber = 5;
  15.             int stopNumber = 96;
  16.  
  17.             for (int currentNumber = startNumber; currentNumber <= stopNumber; currentNumber += step)
  18.                 Console.Write($"{currentNumber} ");
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement