int main() { int height, width, tmp, tmp2; cout <<"Enter width of rectangle: "; cin >>width; cout <<"Enter height of rectangle: "; cin >>height; for(tmp =0; tmp!=width; tmp++) cout <<"***"; for(tmp =0; tmp!=height; tmp++) { cout <<"\n*"; for(tmp2 =0; tmp2 !=width - 0.5 ; tmp2++) cout <<" "; cout <<"*\n"; } for(tmp =0; tmp!=width; tmp++) cout <<"***";