Write a program to print the Square Pattern :-


//Print Square Star Pattern

#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;

for(i=1;i<=4;i++)
{
for(j=1;j<=4;j++)
{
printf(" * ");
}
printf("\n");
}
getch();
}

Output:


*  *  *  * 
*  *  *  * 
*  *  *  * 
*  *  *  * 

			

Previous Next