Kod:
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>http://www.bilisimogretmeni.com/</title>
<script type="text/javascript">
var ort = 1, toplam = 0, i = 0;
var sayi;
while (ort % 2 != 0) {
sayi = prompt("Bir sayı Girin");
i++;
toplam += parseInt(sayi);
ort = toplam / i;
}
********.write("Sayıların Ortalaması =" + ort);
</script>
</head>
<body>
</body>
</html>