kemod
Minggu, 05 April 2009
praktek 3
<html>
<head>
<title>Membuat Fungsi Matematika Dengan Java Script</title>
</head>
<body>
<script language="JavaScript">
<!--
function jumlah(x,y) {
var hasil = x + y;

return(hasil);
}

var a = parseInt(prompt("Ketikan Bilangan A = \n Ingat Jangan String"));
var b = parseInt(prompt("Ketikan Bilangan B = \n Ingat Jangan String"));
var z = jumlah(a,b);

document.write(z);
document.write("<BR>");
document.write("<hr>");
document.write("Tipe Data nya adalah = " + typeof(z));

//-->
</script>
</body>
</html>
posted by Abah Kemod,,, @ 23.47  
0 Comments:

Posting Komentar

<< Home
 
About Me

Name: Abah Kemod,,,
Home:
About Me:
See my complete profile
Previous Post
Archives
Sidebar Section

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ligula lorem, consequat eget, tristique nec, auctor quis, purus. Vivamus ut sem. Fusce aliquam nunc vitae purus.

Links

Free Blogger Templates

BLOGGER