#include <stdio.h>
int main()
{
int numberoftermstobeaded,n;
int thefirstnumber,a;
int thedifferencebetweeneachnumber,d;
float sum;
n=100;
a=1;
d=1;
sum=(n/2)(2*a+(n-1)d);
printf("the sum of 1 to 100 is %f/n",sum );
getchar();
return 0;
}
我唔明咩叫做 a can not be used as a function