辽宁招生网:谁能帮我做一下

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/05 05:47:19
For each pair of integers A B and C ( -2^31 <= A, B, C<= 2^31-1 ), Output the result of A+B+C on a single line.

Sample Input
1 2 3
3 4 3

Sample Output
6
10

int a,b,c;
scanf("%d,%d,%d",&a,&b,&c);
printf("%d",a+b+c);