- 1

Kotlin

Hey I am new in Kotlin, I am learning kotlin and when I try to solve practice questions my code is always is error but when I copy answer form another place it will be solved but my code is also same what is the problem? please help

16th Jan 2022, 9:07 AM
Bhupal Raut
2 ответов
+ 3
It's a small `L` not capital `i` in print-l-n()
16th Jan 2022, 10:43 AM
Simba
Simba - avatar
0
Water Consumption Each day a family consumes 15 liters of water. Given the number of years as input, you need to calculate and output the amount of water consumed in that period. Sample Input 5 Sample Output 27375 The water consumption in 5 years would be: 5*365*15 = 27375 Use 365 as the number of days in a year. //this is my code fun main(args: Array<String>) { var years= readLine() !!.toInt() var res= years*365 printIn(res*15)} //this is results sercode/file0.kt:4:1: error: unresolved reference: printIn printIn(res*15)} ^
16th Jan 2022, 10:14 AM
Bhupal Raut