KANG BAYU

Beranda » Mapel Produktif » Contoh Program Penambahan 2 Bilangan

Contoh Program Penambahan 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(”
“);

document.write(“Perkalian (” +a+ ” x ” +b+ “) = ” + kali );

document.write(“<BR>”);

//–>

</SCRIPT>

</BODY>

</HTML>

 

 

 


Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

The Big DayMaret 5th, 2012
The big day is here.
%d blogger menyukai ini: