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

TOP

返回列表