计算两数之和
1.c
while(scanf("%d %d",&a,&b)!=EOF)
while(scanf("%d %d",&a,&b)!=EOF)
{
sum=a+b;
printf("%d\n",sum);
}
2.c++
while(cin>>a>>b)
while(cin>>a>>b)
{
sum=a+b;
printf("%d\n",sum);
}
计算两数之和
1.c
while(scanf("%d %d",&a,&b)!=EOF)
while(scanf("%d %d",&a,&b)!=EOF)
{
sum=a+b;
printf("%d\n",sum);
}
2.c++
while(cin>>a>>b)
while(cin>>a>>b)
{
sum=a+b;
printf("%d\n",sum);
}