Advertisement
IGRODELOFF

Task11

Mar 5th, 2022 (edited)
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 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 Task11
  8. {
  9.     internal class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int maxRange = 100;
  14.             int step = 7;
  15.             int startValue = 7;
  16.  
  17.             for (int i = startValue ; i < maxRange; i += step)
  18.             {
  19.                 Console.Write(i + ", ");
  20.             }
  21.         }
  22.     }
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement