<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body >
<script type="text/javascript">
//math objesi
document.write(Math.PI);
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body >
<script type="text/javascript">
//math objesi
;
var n=prompt("Bir sayı gir","")
var cevap =Math.sqrt(n);
document.write(cevap);
</script>
</body>
</html>
--------
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body >
<script type="text/javascript">
//math objesi
;
var n=prompt("Bir sayı gir","")
var cevap =Math.sqrt(n);
document.write(cevap);
alert(n+" nın kökü "+cevap);
</script>
</body>
</html>
------------------
Hiç yorum yok:
Yorum Gönder