public static void Main()
var units = new string[] {"zero","one", "two", "three", "four","five", "six", "seven","eight","nine", "ten","eleven","twelve", "thirteen","forteen","fifteen","sixteen","seventeen","eighten","ninteen"};
var tens = new string[] {"zero", "ten","twenty","thirty","forty","fifty","sixty","seventy","eighty","Ninty"};
result += " " + units[r] + " million";
result += " " + units[r] + " lacs";
if( (nbr % thousand) > 20){
result += " " + tens[r/10] + " thousand";
result += " " + units[r] + " thousand";
result += " " + units[r] + " hundred";
result += " " + tens[(nbr % 20)-1] + " ";
result += " " + units[nbr] + " ";