<pre><script type="text/javascript"> <!-- var myVariable = 100; var anotherVariable = 200; var PResults = myVariable + anotherVariable; var MResults = myVariable - anotherVariable; var QResults = myVariable * anotherVariable; var RResults = myVariable / anotherVariable; document.write('100 + 200 ='); document.writeln(PResults); document.write('100 - 200 ='); document.writeln(MResults); document.write('100 * 200 ='); document.writeln(QResults); document.write('100 / 200 ='); document.write(RResults); // --> </script></pre>
ผลที่ได้ด้านล่าง
0 ความคิดเห็น:
แสดงความคิดเห็น