**Variable Names**  
I would use a struct to represent each rectangle, variables within the struct would be height and width. The struct could be named rect with instances of rect1, rect2 and rect3.

If you don't use a struct, use better variable names such as rect1x, rect1y.

**Prompt Input**  
You need to ask the user a question before you scan the input.