Make your own free website on Tripod.com
Hello

Welcome to my page!

Javascript

 
Links

Math Problems

Declare Variables

alert(rules)


for(i=0; i<5; i++)

num1=Math.floor(Math.random()*100) +1;
num2=Math.floor(Math.random()*100) +1;

calculations= num1 - num2;


while( calculations!=guess)
guess=prompt("What is " + num1 + " - " + num2 + " ?");


if(calculations!=guess)
alert("Sorry, your wrong, try again")

alert (You win)
</script>

 


 

 

Links

Contact me

Favorite links

Computer Science

Five Classmates