I have been giving the task of making a box using all asterisks, given an input of say 5. Im supposed to make something that resembles a 5x5 box with nothing in between...
I am stuck at a dead-end here and any help would be appreciated!
My code so far is below, it isn't right :P
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
int main()
{
int clm;
int row;
cout<<"How big of square do you want? Enter a number 1-20: ";
cin>>clm;
while (clm-- > 0)
{
row = clm;
cout<<"*";
while (row++ > 0)
cout<<"*";
cout<<endl;
}
return 0;
}