Advertisement
JohnJuly

Homework10

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