fork download
  1. # your code goes here
  2. height = int(input("Enter the height of the rectangle: "))
  3. width = int(input("Enter the width of the rectangle: "))
  4. i = 0
  5.  
  6. while(i < height) :
  7. j = 0
  8. while( j < width ):
  9. print(end="* ")
  10. j = j+1
  11. print("")
  12. i = i + 1
Success #stdin #stdout 0.03s 9748KB
stdin
5
5
stdout
Enter the height of the rectangle: Enter the width of the rectangle: * * * * 
* * * * 
* * * *