C Program for Printing Stars

How to print stars in square shaped ?
Print stars using C programming language ?

Program Code;

#include<stdio.h>
int main()
{
int i, j;
for(i=0;i<10;i++)
{
for(j=0;j<10;j++)
printf("*");
printf("\n");
}
}

Output:

.exe file

No comments:

Post a Comment

Please disable your ad blocker to support this website.

Our website relies on revenue from ads to keep providing free content.