复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Day021_1 { class Program { static void Main(string[] args) { //纸张可以无限次对折,纸张厚度为0.07毫米。问多少次对折至少可以超过8848?利用while int x = 7, y = 884800000; int count = 0; while (x<y) { x *= 2; count++; } Console.WriteLine("对折次数:"+count); Console.Read(); } } }
最后
以上就是重要帆布鞋最近收集整理的关于c#纸张可以无限次对折,纸张厚度为0.07毫米。问多少次对折至少可以超过8848?的全部内容,更多相关c#纸张可以无限次对折,纸张厚度为0内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复