def strange(j): k= 0 while (j>0): k = 10*k + j%10 j = j/10 return k strange(1230)
Standard input is empty
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!