object Main {def main(args: Array[String]) {var i=3;var j=0;i=i*3;for(j <- 3)println(j);println(i);println("Hello, world!");}}
Standard input is empty
Main.scala:6: error: value foreach is not a member of Int for(j <- 3) ^ one error found
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!