New course! Every coder should learn Generative AI!
Try a free lesson+ 25
#include <iostream>
using namespace std;
int main() {
int side;
cin>>side;
for(int i=1; i<=side; i++){
for(int j=1; j<=side; j++){
cout<<"* ";
}
cout<<endl;
}
return 0;
}