输入从a加到b的两个数字

#include"stdio.h"
void main()
{
int a,b,n,s=0;
printf("输入从a加到b的两个数字:");
scanf("%d,%d",&a,&b);
for(n=a;n<=b;n++)
s+=n;
printf("s=%d ",s);
}

原文地址:https://www.cnblogs.com/bobotongxue/p/12294245.html