0

я вахуе с котлина

хуй знает как оно работает,но оно работает

22nd Aug 2023, 6:15 PM
BobrlDobr
BobrlDobr - avatar
1 Réponse
0
fun main(args: Array<String>) { var hours = readLine()!!.toInt() var total: Double = 0.0 if (hours>=24){ if(hours /24 >=1){ total =(15*((hours-(hours%24))/24))+((hours%24)*0.5) println(total) } } else if(hours<=5 && hours>0){ total += hours println(total) } else if (hours>5 && hours < 24){ total = ((hours - 5)*0.5)+5 println(total) } }
22nd Aug 2023, 6:16 PM
BobrlDobr
BobrlDobr - avatar