You are on page 1of 1

1 #include<stdio.

h>
2 int main()
3 {
4 int L,f,c;
5 printf("Ingrese el tamano del cuadrado\n");
6 scanf("%d",&L);
7 for (f=1;f<=L;f++){
8 for (c=1;c<=L;c++){
9 if ((f==1||f==L)||(c==1||c==L)){
10 printf("*");
11 }else printf(" ");
12 }
13 printf("\n");
14 }
15 }

You might also like