var i;for(i=1;i<=10;i++){if ((i%3===0)||(i%5===0)){print(i)}}
Standard input is empty
3 5 6 9 10
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!