def f(m:Int,s:String):Unit={if(m>0)for(i<-1 to 3){println(s+i);f(m-1," "+s+i+".")}} f(readInt,"")
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page