Advertisement
SaNik74

subsequence

Jan 23rd, 2024
1,003
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1. class Program
  2. {
  3.     static void Main(string[] args)
  4.     {
  5.         int firstNumber = 5;
  6.         int lastNumber = 96;
  7.         int additionalNumber = 7;
  8.  
  9.         for (int i = firstNumber; i <= lastNumber; i+= additionalNumber)
  10.         {
  11.             Console.Write($"{i} ");
  12.         }
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement