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
3 Respostas
+ 3
Delete that bracket in line 8...it is too much😊
+ 3
You have used extra }
compare with your code
fun main(args: Array<String>) {
var py = "*";
while (py.length <= 90) {
println(py + "\n");
py += "*";
};
}
0
Thanks fo r being so nice guys and helping me!!