Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- //ES 2, STAMPA QUADRATO VUOTO
- int l;
- do scanf("%d",&l);
- while(l<1 || l>20);
- for (int i=0;i<l;i++) {
- for (int j = 0; j < l; j++)
- if(i==0 || i==l-1 || (j==0 || j==l-1)) printf("* ");
- else printf(" ");
- printf("\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement