C Program to display following pattern
#include<stdio .h="">
#include<conio .h="">
void main()
{
int n,i,j;
clrscr();
printf("\nEnter the number:");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
if(i%2==0)
printf(" ");
for(j=1;j<=n;j++)
{
printf("*");
}
printf("\n");
}
getch();
}
****************OUTPUT***********
Enter the number:8
********
********
********
********
********
********
********</conio></stdio>