#27890: C++無判斷式詳解


910473@lzsh.tc.edu.tw (乾紗壽葉我婆)


#include<iostream>

 

using namespace std;

 

int main()

{

 int h;  //設定時間變數 

 

 cin>>h;  //輸入h變數 

 

    cout<<(h-15+24)%24<<endl; //輸出運算美國時間 

 }