Run ID:106085

提交时间:2025-01-15 12:58:36

#include <iostream> using namespace std; int main(){ int s=0; int i=1; while(i<=100) { s = s + i; i++; } s =0; for(int i=1;i<=100;i++) s += i; cout<<s; return 0; }