返回列表 發帖
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. for(int i=1; i<=100; i=i+2)

  6. {

  7. cout<<i<<endl;
  8. }
  9. cout<<endl;   
  10. system("pause");   
  11. return 0;      

  12. }
複製代碼

TOP

  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. for(int i=50; i<=100; i=i+5)

  6. {

  7. cout<<i<<endl;
  8. }
  9. cout<<endl;   
  10. system("pause");   
  11. return 0;      

  12. }
複製代碼

TOP

返回列表