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 a square of stars of size N × N.

WAC to print a square of stars of size N × N.

Soham  •  Jul 17, 2026  •  2 views
0

1 Answers

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

int main()
{
int n, i, j;

printf("Enter size: ");
scanf("%d", &n);

for(i = 1; i <= n; i++)
{
for(j = 1; j <= n; j++)
{
printf("* ");
}
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 →