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

C Programming Language >   Loop control in C Language >   for Loop in C  

Short Question

9581


Answer:

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


This Particular section is dedicated to Question & Answer only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.