#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int i;
int sum;
sum=0;
for( i = 1 ; i <= 100 ; i++ )
sum=sum+i;
printf("\n1-100總和等於:\n");
printf("%d\n\n",sum);
printf("==========\n");
printf(" kax0205\n");
printf("==========\n\n");
system("PAUSE");
return EXIT_SUCCESS;
}
沒有留言:
張貼留言