Write a program to display the number 1 to 14 next to one another (but with spaces in between), make a use of a loop:
using System;
class ConsoleApp1
{
static void Main()
{
for (int i = 1; i <= 14; i++)
Console.Write($"{i} ");
}
}
Comments
Leave a comment