40950 in words is written as :

Forty Thousand Nine Hundred and Fifty