返回列表 發帖
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int n;
  4. int main()
  5. {
  6.     cin >> n;
  7.     if(n>100 || n<0)
  8.         cout << "error\n";
  9.     else
  10.     {
  11.         if(n>=60)
  12.             cout << "pass\n";
  13.         else
  14.             cout << "fail\n";
  15.         if(n%2)
  16.             cout << "odd\n";
  17.         else
  18.             cout << "even\n";
  19.     }
  20.     return 0;
  21. }
複製代碼
Vincent

TOP

返回列表