def numero = 2220002330000000println numero.toString().reverse().takeWhile{it=='0'}.size()
Standard input is empty
7
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!