Javascript. Намуна 04

Печать

Намунаи 4

<html>
<head>
<meta charset='utf-8'/>
<title>Намунаи 4</title>
</head>
<body>
<script type="text/javascript">
<!--
var a = 33;
var b = 10;

document.write("a = ");
document.write(a);
document.write("<br>");

document.write("b = ");
document.write(b);
document.write("<br>");

document.write("a + b = ");
result = a + b;
document.write(result);
document.write("<br>");

document.write("a - b = ");
result = a - b;
document.write(result);
document.write("<br>");

document.write("a * b = ");
result = a * b;
document.write(result);
document.write("<br>");

document.write("a / b = ");
result = a / b;
document.write(result);
document.write("<br>");

document.write("a % b = ");
result = a % b;
document.write(result);
document.write("<br>");

document.write("++a = ");
++a;
document.write(a);
document.write("<br>");

document.write("--b = ");
--b;
document.write(b);
document.write("<br>");
//-->
</script>
</body>
</html>
 

Произведение «OFTOB.COM» публикуется на условиях лицензии Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Непортированная.