#include<stdio.h>int main(){int a;int b; int n; scanf("%d",&n);while (n>0){n--;scanf("%d%d",&a,&b);printf("%d",a+b);}return0;} | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

#include<stdio.h>int main(){int a;int b; int n; scanf("%d",&n);while (n>0){n--;scanf("%d%d",&a,&b);printf("%d",a+b);}return0;}

what is the wrong with it

18th Sep 2018, 2:55 PM
以後。
4 Answers
0
but now?
18th Sep 2018, 3:17 PM
以後。
0
the result is strange
18th Sep 2018, 11:41 PM
以後。
0
你的printf中怎么会有两个%d%d ,a+b是一个值
19th Sep 2018, 12:54 AM
jang
0
My English is not good.Sorry
19th Sep 2018, 1:56 AM
jang