object Main extends App{for(x<-1 to 50)print(List("fizz"*(1-x%3)+"buzz"*(1-x%5),""+x).sorted.tail(0))}
Standard input is empty
12fizz4buzzfizz78fizzbuzz11fizz1314fizzbuzz1617fizz19buzzfizz2223fizzbuzz26fizz2829fizzbuzz3132fizz34buzzfizz3738fizzbuzz41fizz4344fizzbuzz4647fizz49buzz
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!