Looping conceptVMVignesh Madeshwaran12yAsked Jul 20, 2014, 8:06 PM EDT1 answerShareLinkedInXCopy linkSaveHello friends i want output like this way in c# * *** ***** ******* ******** 1 AnswerKnow the answer? Post it. Somebody with the same question will find it here.GUGuest UserRank #258 · 9.8K points12y agoPosted Jul 20, 2014, 10:50 PM EDT0C#Copy class Program { static void Main(string[] args) { int i, j; string s = ""; int n = 7; //no. of lines for (i=1; i <= n; i++) { s = ""; for (j = 1; j <= (i * 2) - 1; j++) { s += "*"; } Console.WriteLine(s); Console.WriteLine(); } Console.Read(); } }0Join to answer this questionEvery answer you publish earns 20 SHARP.Create free accountSign in
Looping conceptVMVignesh Madeshwaran12yAsked Jul 20, 2014, 8:06 PM EDT1 answerShareLinkedInXCopy linkSaveHello friends i want output like this way in c# * *** ***** ******* ********
GUGuest UserRank #258 · 9.8K points12y agoPosted Jul 20, 2014, 10:50 PM EDT0C#Copy class Program { static void Main(string[] args) { int i, j; string s = ""; int n = 7; //no. of lines for (i=1; i <= n; i++) { s = ""; for (j = 1; j <= (i * 2) - 1; j++) { s += "*"; } Console.WriteLine(s); Console.WriteLine(); } Console.Read(); } }0
Guest UserRank #258 · 9.8K pointsPosted Jul 20, 2014, 10:50 PM EDT
class Program { static void Main(string[] args) { int i, j; string s = ""; int n = 7; //no. of lines for (i=1; i <= n; i++) { s = ""; for (j = 1; j <= (i * 2) - 1; j++) { s += "*"; } Console.WriteLine(s); Console.WriteLine(); } Console.Read(); } }