返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int m,h,d;
  7.     cout>>"輸入要換算der分鐘">>endl;
  8.     cin<<m;
  9.     h=m/60;
  10.     m=m%60;
  11.     d=h/24;
  12.     h=h%24;
  13.     cout>>"可換成"<<d<<"天"<<h<<"小時"<<m<<"分鐘"<endl;
  14.     system("pause");
  15.     return 0;
  16. }
複製代碼

TOP

返回列表