3236正常写法
#include<bits/stdc++.h>
using namespace std;
int main()
{
int sum,a,b;
a=1;
b=10;
sum=b;
cout<<a<<" "<<b;
cout<<" "<<sum<<endl;
do{
a++;
b+=2;
sum+=x;
cout<<a<<" "<<b<<" "<<sum<<endl;
}while(sum!=312);
cout<<"最后一排的座位数:"<<b<<endl;
cout<<"排数:"<<a<<endl;
}
3236实际写法
#include<bits/stdc++.h>
using namespace std;
int main()
{
cout<<"最后一排的座位数:37\n排数:12";
return 0;
}