运行结果:
C语言代码:
/* c how to program 习题3.40 */
#include <stdio.h>
// function main begins program execution
int main( void )
{
//定议变量number
int number = 1;
//当number不等于0执行循环
while( number ){
//计算并打印number的值
number *= 2;
printf("%d\n", number);
}
}