example

by Ryan Kleinhans

JavaScript

var carPrice

carPrice = parseInt(prompt("Enter car price"))

while(carPrice < 0 || carPrice > 100000)
{
	carPrice = parseInt(prompt("Invalid amount. Please reenter a valid car price"))
}

alert("Your car price is " + (carPrice * 1.05).toFixed(2))