C/DeitelC/Chapter3/SquareOfAsteriks.c
2024-03-26 11:15:25 +03:00

21 lines
317 B
C

#include <stdio.h>
int main(void){
int a = 0;
int b = 1;
int c = 1;
printf("%s\n","Enter side of asteriks!");
scanf("%d", &a);
while(b <= a) {
while(c <= a) {
printf("*");
c++;
}
printf("\n");
c = 1;
b++;
}
return 0;
}