链接:https://pan.baidu.com/s/1qDdBkFPakLtCvh8_W2wiog
提取码:x3zg
标签:+= ios sum block c++ end body main blog
链接:https://pan.baidu.com/s/1qDdBkFPakLtCvh8_W2wiog
提取码:x3zg
#include<iostream> using namespace std; int main() { int sum,p,x; p=1; x=15; sum=x; cout<<p<<" "<<x; cout<<" "<<sum<<endl; do { p++; x+=2; sum+=x; cout<<p<<" "<<x<<" "<<sum<<endl; }while(sum !=312); cout<<"最后一排的座位数:"<<x<<endl; cout<<"排数:"<<p<<endl; return 0; }
标签:+= ios sum block c++ end body main blog
原文地址:https://www.cnblogs.com/kixiaoyuan/p/12702301.html