小白,大神求教 这个是怎么回事啊?
程序代码:#include <stdio.h>
#include <stdlib.h>
#include <math.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int add(int begin,int end);
{
int d=0;
for(d=0;begin<=end;begin++)
d=begin+d;
return d;
}
int main(int argc, char *argv[]) {
int a,b,c,sum;
a=add(1,100);
b=add(500,600);
c=add(300,350);
sum=a+b+c;
printf("%d\n",sum);
return 0;
}








