#9296: 輸出短少???


weiwow123 (雲坊)


我用Dev測試可行,但是用網站測試卻一直說輸出短少,請問有誰知道這是為何嗎0.0?

 

#9297: Re:輸出短少???


weiwow123 (雲坊)


我用Dev測試可行,但是用網站測試卻一直說輸出短少,請問有誰知道這是為何嗎0.0?

 

#include<stdio.h>

int main(){
int a,b;
scanf("%d%d",&a,&b);
printf("%d",a+b);
return 0;
}
#9298: Re:輸出短少???


anandrewboy70900 (ShowTsai)


#include<stdio.h>

int main(){
int a,b;
while(scanf("%d%d",&a,&b) == 2)
{
         printf("%d\n",a+b);
return 0;
}