📅  最后修改于: 2022-03-11 14:44:45.199000             🧑  作者: Mango
#include
using namespace std;
int main(){
int i = 0;
int sum = 0;
int n = 100;
while(i<=n){
sum = sum + i;
i++;
}
cout << sum;
return 0;
}