0

What is the error?

In parking fees problem in kotlin, why this code fails to satisfies all test cases? https://code.sololearn.com/cmz1cpg63vBP/?ref=app

5th Jul 2021, 4:20 AM
Sanjyot21
Sanjyot21 - avatar
2 Answers
+ 4
Sanjyot21 If hours is more than 24 then total=15.0 * (hours / 24) + ((hours % 24) * 0.5) https://www.sololearn.com/Discuss/2822794/?ref=app
5th Jul 2021, 4:30 AM
A͢J
A͢J - avatar
5th Jul 2021, 9:46 AM
Sanjyot21
Sanjyot21 - avatar