Answer to Question #312716 in C# for kun

Question #312716

Write a program to display the numbers 1 to 14 next to one another (but with spaces in between), making use of a loop


1
Expert's answer
2022-03-16T14:48:45-0400
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class ConsoleApp2
    {
        static void Main(string[] args)
        {
            for (int i = 1; i <= 14; i++)
            {
                Console.Write("{0} ", i);
            }
            Console.ReadKey();
        }
    }

}

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