Skip to main content
Added a word to make it more readable.
Source Link
pacmaninbw
  • 24.9k
  • 11
  • 46
  • 109

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 For Input
You need to ask the user a question before you scan the input.

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.

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 For Input
You need to ask the user a question before you scan the input.

Source Link
pacmaninbw
  • 24.9k
  • 11
  • 46
  • 109

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.