返回列表 發帖
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int total=0;
  6.   int i=51;
  7.   while(i<=70)
  8.   {
  9.              total = total+i;
  10.              i+=3;
  11.   }
  12.           cout<<total;
  13.        cout<<endl;
  14.     system("pause");
  15.     return 0;
  16. }
複製代碼

TOP

返回列表