Reply
Wed 28 May, 2014 05:38 am
I have i simple piece of code that receives inputs from the user till the user presses zero, but the code receives this zero also, I don't know why here is the code:
var i=0;
var myValues = [];
var InputNumber=prompt("Enter any number, Exit with zero");
InputNumber=parseInt(InputNumber);
myValues [0]=InputNumber;
while (InputNumber != 0)
{
InputNumber=prompt("Enter any number,Exit with zero");
InputNumber=parseInt(InputNumber);
i++;
myValues =InputNumber;
}