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