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

TOP

返回列表