+ 1
Am finding this difficult on kotlin lesson ๐ (2.2 make it run)
pls how can solve this ๐ญ๐๐You are given code that outputs a quote. However, the code creates many unnecessary line breaks. ๏ปฟ ๏ปฟ Fix the code to generate the output on one line, without any line breaks. ๐fun main(args : Array<String>) {๏ปฟ println("Code is like humor. \nWhen you have to explain it, \nitโs bad.โ \nโ Cory \nHouse")๏ปฟ }
10 Answers
+ 2
May be your's code has an extra space..
You're welcome..
+ 1
Okey it has work now thanks so much I really appreciate you brother God bless you so much ๐๐๐๐๐๐๐๐๐
0
It just asking "Remove line breaks from output string.. "
\n character adds line break in output...
0
I tried everything but is not working please help me solve it please ๐๐๐๐๐ข๐ญ๐ญ
0
What is your try there?
0
fun main(args : Array<String>) {
println("Code is like humor. When you have to explain it, itโs bad.โ โ Cory House")
}
I did it like this ๐ and also tried other pattern too
0
fun main(args : Array<String>)
{๏ปฟ
println("Code is like humor. When you have to explain it, itโs bad.โ โ Cory House")๏ปฟ
}
0
Okey thanks let me try it now thanks
0
I did same but its not working
0
Try this
fun main(args: Array<String>) {
println("Code is like humor. When you have to explain it, itโs bad.โ โ Cory House")
}