用while循环1-100之间的运算。

用while循环1-100之间的运算,一起来看看吧。

材料/工具

HBuilder X

方法

首先需要定义求和变量。

接着用while实现循环

这样就获取1-100之间的数据。