Write a loop statement that will show the following output:
1
12
123
1234
12345
Please read the guide .
Please answer the question in detail
for (a=1; a<=5; i++) { for (b=1; b<=a; b++) printf("%d",b); printf("\n"); }
Doubtly is an online community for engineering students, offering:
Get the pro version for free by logging in!
5.7k questions
5.1k answers
108 comments
561 users