<html> <head> <script language="javascript''> <!-- var a; var b; a = prompt("input numberfor plus") a = parseInt(a); b = prompt("input another number") b = parseInt(b);
if(a > b)
{ b=a-b; alert(b);
}
else
{ b=a+b; alert(b);
}
</script>
</head>
</html>
ไม่มีความคิดเห็น:
แสดงความคิดเห็น