C# - Program to write numbers that takes the Starting Number and the Number of Integers to be displayed


C# - Program to write numbers that takes the Starting Number and the Number of Integers to be displayed

CODE
using System; class Program { public static void Main() { int startingNumber = 11; int totalNumbersToPrint = 10; for (int i = startingNumber; i < startingNumber + totalNumbersToPrint; i++) { Console.WriteLine(i); } Console.ReadKey(); } }

Comments