Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun main() {
- var hours = 48
- when(hours){
- in 1..5 -> print("${(hours * 5).toDouble()}")
- in 6..23 -> print("${5 + (hours - 5) * 0.5}")
- else -> print("${((hours%24)*0.5) + (hours/24 * 15)}")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement