鱼C论坛's Archiver
论坛
›
C\C++交流
› 简单例子分享005:将scanf写进while
鱼蛋代码
发表于 2016-12-2 18:02:11
简单例子分享005:将scanf写进while
#include <stdio.h>
#include <stdlib.h>
int main (void)
{
int a,b,c;
a = 1;
c = 1;
while(c<10)
{
scanf("%d",&b);
c=a+b;
printf("%d",c);
}
system ("pause");
return 0;
}
15701168680
发表于 2017-1-4 16:53:57
nice
页:
[1]
查看完整版本:
简单例子分享005:将scanf写进while