Drawing a w-wide h-high rectangular frame using asterisks

My lab is basically prompting the user first for the width and height, then using asterisks to draw it, Kinda lost as to where to go from here, Super beginner level

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  #include <iostream>
using namespace std;

int main{

int w, h; //Variables for width and height, respectively

do {   //Getting dimensions of rectangle

  cout << "Enter width of desired rectangle (whole number >0)"<< endl;
  cin >> w;
  cout << "Enter height of desired rectangle (whole number >0)" << endl;
  cin >> h;
}

for(int i=0; i<h;i++)
   {
     for(int i=0; i<w; i++)


thanks for the help
Last edited on
Topic archived. No new replies allowed.