#include <stdio.h>

int main ( void )
{
        int a=1;
        int b=1;
        int N;

        printf( "Enter size of square:" );
        scanf( "%d", &N );
        if ( N < 20 ) {
           while ( a <= N ) {
                   a = a + 1;
                        while ( b <= N ) {
                                b++;
                        printf( "*" );
                        }
                        printf("\n");
                        printf("*");
           }
        }
                
        

        
        return 0;
}

요래코딩하면

콘솔에
*****
*
*
*
*
요래뜨는데;;
*****
*****
*****
*****
*****
이렇게떠야하는데 방법좀알려주세요 ㅠㅜㅠㅜㅠㅜㅠ