7800040 in words is written as :

Seven Million Thousand Forty