JavaScript program to convert dollars to rupees

Views: 741   

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

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


Please enter dollars:
1600.0 Rupees
On By