Javascript : Operator Matematika

Selasa, 26 Februari 2019

Javascript : Operator Matematika


Operator Matematika



7. Script :
<HTML>
<HEAD>
<TITLE>Operasi Matematika</TITLE>
</HEAD>
<BODY>
<SCRIPT LANGUAGE = "JavaScript">

document.write("20 + 3 = " + (20 + 3) );
   document.write("<BR>");
   
document.write("20 + 3 = " + (20 - 3) );
   document.write("<BR>");
   
document.write("20 * 3 = " + (20 * 3) );
   document.write("<BR>");
   
document.write("20 / 3 = " + (20 / 3) );
   document.write("<BR>");
   
document.write("20 % 3 = " + (20 % 3) );
   
document.write("<BR>");

</SCRIPT>
</BODY>
</HTML>

Hasil :


0 komentar :

Posting Komentar