Write a loop statement that will show the following output:112123123412345

Short Answer
Views 9384

Answer:

 
for (a=1; a<=5; i++) {
for (b=1; b<=a; b++)
printf("%d",b);
printf("");
}
 

Related Articles:

This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of C Programming Language, click the links and dive deeper into this subject.

Join Our telegram group to ask Questions

Click below button to join our groups.