编写程序计算1+2+3…+100之和。这个如何划分结构和那个过程分析 呢
#include<iostream> using namespace std; int main() { int b; for(int a=100;a==0;a--){ b+=a; } printf(b); }