candy

by Ryan Kleinhans

JavaScript

var candyName
var price
var average

candyName = prompt("What's the name of the candy?")
price = prompt ("What is the price per pound of the candy?")
average = prompt("What is the average pounds sold in an average month?")

if(average > 2000)
{
alert("Name: " + candyName + "\nPrice per Pound: " + price + "\nAverage: " + average)
}
else
{
alert("this isn't a best selling item")
}