运行结果:
C语言代码:
/* c how to program 习题3.36 */
#include <stdio.h>
// function main begins program execution
int main( void )
{
//定义变量 number
long int number = 0;
//当number为1-1000000000时执行循环
while(++number <= 1000000000){
//如果number是100000000的倍数时,输入它的倍数。
if(number % 100000000 == 0)
printf("%ld\n", number / 100000000);
}
}