fork download
  1. var i: Double = 0.0
  2. while (30.0 > i) {
  3. print(i)
  4. i = i + 1.0
  5.  
  6. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.kt:2:1: error: expecting a top level declaration
while (30.0 > i) {
^
prog.kt:2:7: error: expecting a top level declaration
while (30.0 > i) {
      ^
prog.kt:2:8: error: expecting a top level declaration
while (30.0 > i) {
       ^
prog.kt:2:13: error: expecting a top level declaration
while (30.0 > i) {
            ^
prog.kt:2:15: error: expecting a top level declaration
while (30.0 > i) {
              ^
prog.kt:2:16: error: expecting a top level declaration
while (30.0 > i) {
               ^
prog.kt:2:18: error: expecting a top level declaration
while (30.0 > i) {
                 ^
prog.kt:2:18: error: function declaration must have a name
while (30.0 > i) {
                 ^
stdout
Standard output is empty