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)} ^

16th Jan 2022, 10:14 AM
Bhupal Raut
3 Respostas
+ 4
Bhupal Raut There is small letter of 'L' not capital letter of 'i' in println
16th Jan 2022, 10:16 AM
A͢J
A͢J - avatar
+ 2
Bhupal Raut Don't use bad word in comments. It is against the Sololearn policy.
16th Jan 2022, 10:23 AM
A͢J
A͢J - avatar
+ 1
@AJ thanks dude thats why my every code is getting wrong. Thanks for your help . I am fuking dumb
16th Jan 2022, 10:19 AM
Bhupal Raut