Skip to content

Instantly share code, notes, and snippets.

@Mazday21
Last active April 17, 2022 05:54
Show Gist options
  • Save Mazday21/8708d3dbca2cc0ec624dcf4505d5da59 to your computer and use it in GitHub Desktop.
Save Mazday21/8708d3dbca2cc0ec624dcf4505d5da59 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
internal class Program
{
static void Main(string[] args)
{
int startNumber = 5;
int incrementStep = 7;
int maxValue = 100;
for(int i = startNumber; i < maxValue; i += incrementStep)
{
Console.Write(i + " ");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment