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

TOP

返回列表