title: Converting seconds to hours and minutes and seconds
body: <pre><code>#include &lt;cstdio&gt;
  #include &lt;iostream&gt;
  using namespace std;
  int main ()
  {
      int seconds, hours, minutes;
      cin &gt;&gt; seconds;
      hours = seconds/3600;
      cout &lt;&lt; seconds &lt;&lt; " seconds is equivalent to " &lt;&lt; int(hours) &lt;&lt; " hours " &lt;&lt; seconds%(hours*60) 
           &lt;&lt; " minutes " &lt;&lt; (seconds%(hours*3600))-((seconds%(hours*60))*60) &lt;&lt; " seconds.";
  }
  </code></pre>
  
  <p>For some reason, this program works with only numbers above 3600. Does anyone know how to fix this problem? Whenever I do a number below 3600, the screen shows up with a message from Windows saying that the program has stopped working.</p>