JavaScript program to convert rupees to dollars

Views: 397   

Following program shows you how to convert rupees to dollars
In this program we get rupees from user, once we get those we need to divide with 64 so that we get in dollars

var rupees = parseInt(prompt("Please enter rupees:"));
var dollars = rupees / 64;
console.log(dollars + " Dollars");


Please enter rupees:
156.25 Dollars
On By