0

Why is my kotlin pyramid code not working?

Building a pyramid: * ** *** **** ***** ****** Output }<--Expected top level indentation Why does it do it? https://code.sololearn.com/cnj29oTXIR22/?ref=app

19th Apr 2020, 2:40 PM
Learn Big - LB
Learn Big - LB - avatar
3 Respostas
+ 3
Delete that bracket in line 8...it is too much😊
19th Apr 2020, 2:42 PM
Oma Falk
Oma Falk - avatar
+ 3
You have used extra } compare with your code fun main(args: Array<String>) { var py = "*"; while (py.length <= 90) { println(py + "\n"); py += "*"; }; }
19th Apr 2020, 2:43 PM
A͢J
A͢J - avatar
0
Thanks fo r being so nice guys and helping me!!
20th Apr 2020, 1:54 AM
Learn Big - LB
Learn Big - LB - avatar