Answer to Question #311696 in C# for Siyanda

Question #311696

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:


1
Expert's answer
2022-03-15T02:58:10-0400
using System;
class ConsoleApp1
{
    static void Main()
    {
        for (int i = 1; i <= 14; i++)
            Console.Write($"{i} ");
    }
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS