#include <stdio.h> int main(){ int i=1, sum=0; while(1){ //循环条件为死循环 sum+=i; i++; if(i>100) break; } printf("%d\n", sum); return 0; }