...Technology Simplified

Wednesday, May 16, 2012

Repeating Characters & Strings in C#

No comments :
//Instead of you write something like this:  
Console.WriteLine("**************************************************");
//You can create a new string and write that string:
//This will repeat '*' fifty times.
Console.WriteLine(new string('*', 50));

No comments :

Post a Comment