How can we take care of the string case? Even if I add a else statement it shows a error message.
@udaytewary3809 Жыл бұрын
Understood philipp
@Darpan3584 жыл бұрын
thank you so much. you explain in very easy way.
@PhilippLackner4 жыл бұрын
Glad it was helpful!
@shubhadanaik96374 жыл бұрын
Hey Philipp can you tell me the array quiz answer for that question " Which of the following statements is not true for Arrays? " because whichever options i am marking i am getting it as incorrect.
@PhilippLackner4 жыл бұрын
It's multiple choice, you need to mark multiple answers
@shubhadanaik96374 жыл бұрын
@@PhilippLackner okay thank you so much and I would like to tell you dt I really like all your videos and I am really improving my self in kotlin. Thanks again.
@hansh.11263 жыл бұрын
Hello Philipp, I think you should replace the else line of the solution with: else if (age > 65) println("You are really really old") else println("maybe you are not a human") //or something else beacause in your solution the user can type for example -23 and the program shows "you are really really old"
@tiktok4286 Жыл бұрын
even this solution don't work it would return nothing
@tiktok4286 Жыл бұрын
this is my code but the problem is the second print never execute don't know why fun main() { print("enter your age:") val input= readLine()?.toInt() if (input != null) { if (0>input && input< 18) { print("you are a child") } else if (18>=input && input
@abbasgaming62256 ай бұрын
println("Enter your age") var age=reader.nextInt() if (age>18&&age60){ println("you are really really old ") }else{ println("you are not adult") }
@shreyaray55085 ай бұрын
val userAge = readLine() val age = userAge?.toInt() ?: 0 if(age < 18){ println("You are Not Allowed ") } else if(age >= 18 && age
@k2a-seraphinefreyacastro364 Жыл бұрын
fun main () { println("Enter your age here:") val age = readLine()?.toInt() if (age != null) { if (age = 18 && age