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.
Test 6 is testing for the upper bound of < 100. If you look in the constraints you will see that the number entered must be greater than -100 and less than 100. The test is failing because it tests a height of 100. The crazy thing that is missing is they do not tell you what should display when this situation happens. But what it is expecting is the exception that you get when your height or breadth is negative.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Static Initializer Block
You are viewing a single comment's thread. Return to all comments →
Test 6 is testing for the upper bound of < 100. If you look in the constraints you will see that the number entered must be greater than -100 and less than 100. The test is failing because it tests a height of 100. The crazy thing that is missing is they do not tell you what should display when this situation happens. But what it is expecting is the exception that you get when your height or breadth is negative.