返回列表 發帖
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     int n;
  6.     cout<<"請輸入你的座號"<<endl;
  7.     cin>>n;
  8.     if(n%3==0)
  9.         cout<<"你是第"<<n/3<<"組"<<endl;
  10.     else
  11.         cout<<"你是第"<<n/3+1<<"組"<<endl;
  12.     system("pause");
  13.     return 0;
  14. }
複製代碼
回復 3# 鄭繼威

TOP

返回列表