Hello Guyz,
i need your help , the output should be like this;
11111
2222
333
44
5
here is my code:
int x;
int y;
for (x = 1; x <= 5; x++)
{
for (y = 1; y <= x; y++)
Console.Write(x);
Console.Write("\n");
}Hello Guyz,
i need your help , the output should be like this;
11111
2222
333
44
5
here is my code:
int x;
int y;
for (x = 1; x <= 5; x++)
{
for (y = 1; y <= x; y++)
Console.Write(x);
Console.Write("\n");
}Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sachin SinghPosted Oct 29, 2021, 5:25 AM
Ahmet TahaPosted Oct 29, 2021, 5:23 AM
Sachin SinghPosted Oct 29, 2021, 4:53 AM