Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Numbers_1N_with_Step_3
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- for(int i=1;i<=n;i+=3)
- {
- Console.WriteLine(i);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment