返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int z;
  7.     cout<<"請輸入想換算的秒數";
  8.     cin>>z;
  9.     cout<<z<<"秒可換算為..."<<endl;
  10.     cout<<z/3600<<"時, ";
  11.     z%=3600;
  12.     cout<<z/60<<"分, ";
  13.     z%=60;   
  14.     cout<<z<<"秒"<<endl;
  15.     system("pause");
  16.     return 0;   
  17. }
複製代碼

TOP

返回列表