Rabu, 24 Februari 2010

Program Menambah 2 Bilangan

<HTML>
<HEAD>
<TITLE>Type Bilangan</TITLE>
</HEAD>
<BODY>
<SCRIPT LANGUAGE = "JavaScript">
<!--

var a = 15;
b = 14;

tambah = a + b;
kali = a * b;

document.write("Penambahan (" +a+ " + " +b+ ") = " + tambah);
document.write("<BR>");
document.write("Perkalian (" +a+ " x " +b+ ") = " + kali);
document.write("<BR>");

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


HASILNYA :


Tidak ada komentar:

Posting Komentar