scanf("%d,%d,%d\n",&a,&b,&c);//逗号!逗号!逗号!重要的话记得要说三遍
#include <stdio.h> int main() { int a,b,c,sum; printf("please three integer: \n"); scanf("%d,%d,%d",&a,&b,&c); sum=a+b+c; printf("sum;%d\n",sum); return 0; } /* please three integer: 1,2,3 sum;6 请按任意键继续. . . */