Coding Now – Best AI & Full Stack Courses in Delhi NCR | 100% Placement
Limited Offer: Get 50% OFF on AI & Full Stack Courses
📞 Call Now: +91 9667708830
Home Community WAC to print the following pattern.

WAC to print the following pattern.

Soham  •  Jul 17, 2026  •  4 views
1
12
123
1234
12345
0

2 Answers

Soham
Jul 17, 2026
#include <stdio.h>

int main()
{
int i, j;

for(i = 1; i <= 5; i++)
{
for(j = 1; j <= i; j++)
{
printf("%d", j);
}
printf("\n");
}

return 0;
}
Soham
Jul 17, 2026
#include <stdio.h>

int main()
{
int i, j;

for(i = 1; i <= 5; i++)
{
for(j = 1; j <= i; j++)
{
printf("%d", j);
}
printf("\n");
}

return 0;
}

Your Answer

Will not be displayed publicly
💬 Talk to Advisor
1
WhatsApp

Latest from Our Blog

Insights on AI, Data Science, Full Stack & Career

View All Articles →