計算1+2+3+...+n之總和?
#include
int main(void) {
int i,n,sum;
scanf("%d",&n);
for(i=1,sum=0;i { sum
+= i;
printf("%d+",i);
}
printf("%d=%d",i,sum+i);
return 0;
}
int main(void) {
int i,n,sum;
scanf("%d",&n);
for(i=1,sum=0;i
printf("%d+",i);
}
printf("%d=%d",i,sum+i);
return 0;
}
1 意見:
Videoslots - YouTube
Videoslots | YouTube video slots with a high definition, download youtube videos high-quality sound! The first game is Super Mario World for Super Mario World. A special theme is
張貼留言