请问我这为啥运行没结果
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Math </title>
<script type="text/javascript">
function num(a)
{
document.write(Math.ceil(a)+"<br>");
}
var myarr=[3.3,-0.1,-9.9,8.9];
for(var i=0;i++<myarr.length)
{
num(myarr[i]);
}
</script>
</head>
<body>
</body>
</html>