10000040 in words is written as :

Ten Million Forty