首页 > 代码库 > 11.05篮球弹起与棋盘放芝麻

11.05篮球弹起与棋盘放芝麻

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>
</body>


<script type="text/javascript">


//篮球弹起高度
var a=10;

for(i=0;i<10;i++)
{
    a=a*0.3
        alert(a);
}

//棋盘放芝麻
var a=1;  

var b=1;



for(var i=1;i<32;i++)
    {a=a*2
     b=a+b
    } 
var c=b*0.00001;        
             alert(c);
    


</script>

</html>

 

11.05篮球弹起与棋盘放芝麻