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.
Nested Logic
Nested Logic
Sort by
recency
|
39 Discussions
|
Please Login in order to post a comment
Constant time procedure using Java:
C++ code
you dont need anything else than some nested if n else.
The test case #6 has inputs: 8 4 12 1 1 1 and the expected output is: 10000
but the difference between the years is 12-1 = 11 and the fine will be: fine = 11 * 10000 = 110000
this test case itself is wrong