返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5.     cout<<"請輸入一正整數">>;
  6.     int x ,=2
  7.     cin>> x ;
  8.    
  9.     whit( x >=i);
  10.     if(x%i==0)
  11.     break;
  12. }   else if(x==1)

  13. }
  14. i++>;
  15. system("pause");
  16.     return 0;
  17. }

  18.      
複製代碼

TOP

返回列表