8 Aralık 2015 Salı

JavaScript ile Basit Bir Matematiksel Hesaplama





 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
<head>
<title>javascript i̇lk uygulama</title>
<script language="javascript"> 
var x,y,z;
x=10
y=3
z=x*y+2/x*y+x%3*y
document.writeln("<h2>z="+z+"</h2>");
document.writeln("<h2>x="+x+"</h2>");
document.writeln("<h2>y="+y+"</h2>");
</script>
</head>
<body>
</body>
</html>



Sonuç:

z=33.6

x=10

y=3

Hiç yorum yok:

Yorum Gönder