加载中...

算术运算符


调试运行

<html>
<title>算术运算符</title>
<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>

还没有评论.