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

TOP

返回列表