We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Alternatively, it's because in the RectangleArea class you're printing BOTH the ind. width and height AND the area. You're only meant to do the latter (the sample phrasing was mildly confusing).
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Rectangle Area
You are viewing a single comment's thread. Return to all comments →
Alternatively, it's because in the RectangleArea class you're printing BOTH the ind. width and height AND the area. You're only meant to do the latter (the sample phrasing was mildly confusing).