0
kotlin help
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)} ^
3 Answers
+ 4
Bhupal Raut
There is small letter of 'L' not capital letter of 'i'
in println
+ 2
Bhupal Raut
Don't use bad word in comments. It is against the Sololearn policy.
+ 1
@AJ thanks dude thats why my every code is getting wrong. Thanks for your help . I am fuking dumb