programming-examples/c/Pattern_Programs/1111 square.c
2019-11-15 12:59:38 +01:00

23 lines
400 B
C

/*
11111
1 1
1 1
1 1
11111
*/
#include<stdio.h>
void main()
{
int i,j;
for(i=1; i<=5; i++)
{
for(j=1; j<=5; j++)
{
if(j==5 || j==1 || i==1 || i==5)
printf("1");
else
printf(" ");
}
printf("\n");
}
}