本文作者:qiaoqingyi

折叠纸编程(折纸计算机编程程序)

qiaoqingyi 2023-11-19 112

namespace ConsoleApplication1 class Program static void Mainstring args int exp = 0double x = 00double h = 05 * 10, 3while x lt= 884443 exp++x = h *。

每次对折厚度翻倍,用个dowhile循环就行了例如double ss = 009 1000 先把毫米换算为米,统一单位 int i=0do i++ss=ss*2whilessltdouble8848CString msg=quotquotmsgFormatquot折叠%d次后。

折叠纸编程(折纸计算机编程程序)

includequotstdiohquotincludequotmathhquotvoid main float f=10int tfort=1flt12742*10e10t++f=pow20,tprintfquott=%d\nquot,t 首先pow要先定义才能用,而且float的数要加小数点。

阅读
分享