top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to repeat the characters X times in C# ?

0 votes
320 views
How to repeat the characters X times in C# ?
posted Jun 17, 2016 by Sathyasree

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes
using System;

namespace ACCode
{
    class Program
    {
        static void Main(string[] args)
        {
            int X = 4;
            string output = new String('*', X);
            Console.WriteLine(output);
            Console.ReadLine();
        }


    } 
}
answer Jun 17, 2016 by Shivaranjini
...