<html>
<head>
<title> Belajar Array</title>
</head>
<body>
<script language ="javascript">
<!--
var hari = new Array ("minggu","senin","selasa","rabu","kamis","jum'at","sabtu");
for (i=0; i<1; i++)
{
data = prompt ("Masukkan kode hari")
document.write (hari[data] +"<br>")
}
alert ("Selamat Belajar Struktur Data");
alert("Semoga Memperoleh Ilmu yang Bermanfaat");
//--->
</script>
</body>
</html>
Kamis, 31 Maret 2011
Minggu, 27 Maret 2011
tugas3.html(array)
<em>Ampersands & angle brackets need to be encoded.</em>
<HTML>
<HEAD>
<TITLE>belajar array</TITLE>
</HEAD>
<BODY bgcolor =BROWN>
<SCRIPT LANGUAGE = "JavaScript">
<!--
var DATA_KU = new Array("saya","sedang","senang","senang");
for (i=0; i<4; i++)
{
document.write(DATA_KU[i] + "<BR>");
}
alert("Selamat Belajar Struktur Data");
alert("Semoga memperoleh ilmu yang bermanfaat");
alert("kadenya nu getol di ajar teh");
//-->
</SCRIPT>
</BODY>
</HTML>
<HTML>
<HEAD>
<TITLE>parameter array</TITLE>
</HEAD>
<BODY bgcolor = PINK>
<SCRIPT LANGUAGE = "JavaScript">
<!--
var tempat = [];
var data = prompt(" Ketik JUmlah Maksimum Array :");
for (m=1; m<=data; m++)
{
var bil = prompt("Masukan Bilangan :")
tempat[m]= bil;
}
for (n=1; n<=data; n++)
{
document.write("Elemen Array ("+n+") =" +tempat[n] + "<BR>");
}
//-->
</SCRIPT>
</BODY>
</HTML>
<HTML>
<HEAD>
<TITLE>belajar array</TITLE>
</HEAD>
<BODY bgcolor =BROWN>
<SCRIPT LANGUAGE = "JavaScript">
<!--
var DATA_KU = new Array("saya","sedang","senang","senang");
for (i=0; i<4; i++)
{
document.write(DATA_KU[i] + "<BR>");
}
alert("Selamat Belajar Struktur Data");
alert("Semoga memperoleh ilmu yang bermanfaat");
alert("kadenya nu getol di ajar teh");
//-->
</SCRIPT>
</BODY>
</HTML>
<HTML>
<HEAD>
<TITLE>parameter array</TITLE>
</HEAD>
<BODY bgcolor = PINK>
<SCRIPT LANGUAGE = "JavaScript">
<!--
var tempat = [];
var data = prompt(" Ketik JUmlah Maksimum Array :");
for (m=1; m<=data; m++)
{
var bil = prompt("Masukan Bilangan :")
tempat[m]= bil;
}
for (n=1; n<=data; n++)
{
document.write("Elemen Array ("+n+") =" +tempat[n] + "<BR>");
}
//-->
</SCRIPT>
</BODY>
</HTML>
tugas3.html
<HTML>
<HEAD>
<TITLE>belajar array</TITLE>
</HEAD>
<BODY bgcolor =BROWN>
<SCRIPT LANGUAGE = "JavaScript">
<!--
var DATA_KU = new Array("saya","sedang","senang","senang");
for (i=0; i<4; i++)
{
document.write(DATA_KU[i] + "<BR>");
}
alert("Selamat Belajar Struktur Data");
alert("Semoga memperoleh ilmu yang bermanfaat");
alert("kadenya nu getol di ajar teh");
//-->
</SCRIPT>
</BODY>
</HTML>
<HTML>
<HEAD>
<TITLE>parameter array</TITLE>
</HEAD>
<BODY bgcolor = PINK>
<SCRIPT LANGUAGE = "JavaScript">
<!--
var tempat = [];
var data = prompt(" Ketik JUmlah Maksimum Array :");
for (m=1; m<=data; m++)
{
var bil = prompt("Masukan Bilangan :")
tempat[m]= bil;
}
for (n=1; n<=data; n++)
{
document.write("Elemen Array ("+n+") =" +tempat[n] + "<BR>");
}
//-->
</SCRIPT>
</BODY>
</HTML>
Minggu, 13 Maret 2011
praktek struktur data" HTML"
<em>Ampersands & angle brackets need to be encoded.</em><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>
latihan 2
<HTML>
<HEAD>
<TITLE> konversi antar sistem bilangan</TITLE>
</HEAD>
<BODY bgcolor=green>
<SCRIPT LANGUAGE = "JavaScript">
<!--
var bil = new Number(25);
document.write("bilangan desimal: "+bil + "<BR>");
document.write(""<HR>"");
document.write("Biner: " + bil. toString(2) + "<BR>");
document.write("oktal : " + bil. toString(8) + "<BR>");
document.write("Heksa : " + bil.toString (16) + "<BR>");
//-->
</SCRIPT>
</BODY>
</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>
latihan 2
<HTML>
<HEAD>
<TITLE> konversi antar sistem bilangan</TITLE>
</HEAD>
<BODY bgcolor=green>
<SCRIPT LANGUAGE = "JavaScript">
<!--
var bil = new Number(25);
document.write("bilangan desimal: "+bil + "<BR>");
document.write(""<HR>"");
document.write("Biner: " + bil. toString(2) + "<BR>");
document.write("oktal : " + bil. toString(8) + "<BR>");
document.write("Heksa : " + bil.toString (16) + "<BR>");
//-->
</SCRIPT>
</BODY>
</HTML>
Langganan:
Postingan (Atom)