您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

PHP之猴子吃桃

2025/1/15 11:51:31发布15次查看
猴子吃桃 :
第一天吃一半 +1;
第二天吃一半+1;
10天后 剩一个
求一共有多少个
$total=1; $totalar=array(); $totalar[0]=1; for($i=0;$i9;$i++){ $total=2*(1+$total); $totalar[$i+1]=$total; echo$total; } //将数组逆序$totals=array_reverse($totalar); //输出for($i=1;$i$totals)+1;$i++){ echo第{$i}天.$totals[$i-1].'
'; }
').addclass('pre-numbering').hide(); $(this).addclass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadein(1700); }); }); 以上就介绍了 php之猴子吃桃,包括了方面的内容,希望对php教程有兴趣的朋友有所帮助。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product