#include using namespace std; //program narysuje kwadrat int main(){ int l; //dlugosc boku cout<<"Podaj dlugosc boku: "; cin>>l; 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){ cout<<"*"; } else{ cout<<" "; } } cout << endl; } return 0; }