Yachkov

num 1 to ... with 3 steps

Jan 31st, 2021
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1. using System;
  2. using System.ComponentModel;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.Design;
  5. using System.Globalization;
  6. using System.Net.Http.Headers;
  7. using System.Reflection;
  8. using System.Runtime.ConstrainedExecution;
  9. using System.Security.Cryptography;
  10.  
  11. namespace SomeExcercises
  12. {
  13.     class Program
  14.     {
  15.         static void Main(string[] args)
  16.         {
  17.             int n = int.Parse(Console.ReadLine());
  18.  
  19.             for (int i = 1; i <= n; i += 3)
  20.             {
  21.                 Console.WriteLine(i);
  22.             }
  23.  
  24.  
  25.         }
  26.     }
  27. }
  28.  
  29.  
  30.  
  31.  
Advertisement
Add Comment
Please, Sign In to add comment