Advertisement
Montagne94

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

Mar 14th, 2023
443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.27 KB | None | 0 0
  1. public class Program
  2. {
  3.     private static void Main(string[] args)
  4.     {
  5.         int maxValue = 98;
  6.         int minValue = 5;
  7.         int step = 7;
  8.  
  9.         for (int i = minValue; i <= maxValue; i += step)
  10.         {
  11.             Console.WriteLine(i);
  12.         }
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement