elenat82
11/6/2015 - 10:33 AM

il costrutto do....while in JavaScript.html

<!DOCTYPE html>
<html>
<head>
	<title>Il costrutto do...while in JavaScript</title>
	<script type="text/javascript">
	var intero = 500;
	do {
		var mezzo = intero / 2;
		document.write("<p>" + mezzo + "</p>");
		intero = mezzo;
	}
	while (mezzo > 1);
	</script>
</head>
<body>

</body>
</html>