var days = parseInt(prompt("Please enter days:")); var hours = days * 24; console.log(hours + " Hours"); //Output: Please enter days: 20 480 Hours