// debug_square.c // // Write a C program that prints the outline of a square in asterisks ('*'). // The program should take a positive integer 'n' as input and print the // outline of a square of size 'n' by 'n'. // // This program was written by YOUR-NAME-HERE (z5555555) // on INSERT-DATE-HERE #include int main (void) { int size; int rows; int cols; printf("Enter the size of the pattern: "); scanf("%d", size); while (rows < size) { while (cols < size) { printf("*") cols++; } rows++; } return 0; }