QUOTE(FlierMate @ Aug 26 2021, 09:35 PM)
It took me (as an old-timer) awhile to solve it. Initially I thought single loop was enough, but double loops are necessary. (See https://dotnetfiddle.net/6D78Dv, TQ for the exercise :=)
Maybe this question is too mind-boggling for frontend developers? By all means, I am not qualified for web frontend tech stack either.
Edit from this example.Maybe this question is too mind-boggling for frontend developers? By all means, I am not qualified for web frontend tech stack either.
CODE
Console.Write("Number? ");
string numS=Console.ReadLine();
int numI=Int16.Parse(numS);
while(numI > 0)
{
for(int i=1; i<=numI; i++)
{
Console.Write(i.ToString() + ' ');
}
Console.WriteLine();
numI--;
}
string numS=Console.ReadLine();
int numI=Int16.Parse(numS);
while(numI > 0)
{
for(int i=1; i<=numI; i++)
{
Console.Write(i.ToString() + ' ');
}
Console.WriteLine();
numI--;
}
Like this will do.
This post has been edited by shinichi88: Aug 27 2021, 04:32 PM