139840 in words is written as :

Thousand Eight Hundred and Forty