Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix surface area calculation in Rectangle class example output #469

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rohitdaivat
Copy link

Corrected the miscalculation in the sample output for the Rectangle class example. Before, the area of rectangle with width 39 & height 80 was 3920. The correct answer is 3120.

Change Made

  • Update the sample output into correct surface area calculation (3120 instead of 3920).

fixed the miscalculation in the surface area output for the rectangle class example. Before, it was 3920 (for width 39 & 80 height). the correct surface area calculation is 39*80 = 3120.
@rohitdaivat rohitdaivat marked this pull request as ready for review October 31, 2024 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant