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