返回列表 發帖
本帖最後由 張淯祺 於 2020-1-18 11:15 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int t=0;
  7.     cout<<"請輸入秒數"<<endl;
  8.     cin>>ㄔ;
  9.     cin<<t/3600<<"時,";
  10.     t%=3600;
  11.     cin<<t/60<<"分,";
  12.     t%=60;
  13.     cout<<t<<"秒"<<endl;
  14.     system("pause");
  15.     return 0;
  16. }
複製代碼

TOP

返回列表