最近评论
正在载入评论列表...
![]() |
![]() |
c = a+b;
c = a-b;
c = a*b;
c = a/b;

<html>
<head>
<title>算术运算符</title>
</head>
<body>
<script language="javascript">
<!--
a = 10; b = 5;
document.write('a = ',a,',b = ',b,'<br>');
c = a + b;
document.write('a + b = ',c,'<br>');
c = a - b;
document.write('a - b = ',c,'<br>');
c = a * b;
document.write('a * b = ',c,'<br>');
c = a / b;
document.write('a / b = ',c,'<br>');
//-->
</script>
</body>
</html>

图1.5