/* This program takes a certain large number of seconds and converts it into hours, minutes and seconds.
* We use a function to do the calculations. Since we need to send information on 3 quantities back to the place of call, we use reference variables.
*/
#include
using namespace std;
void sharktopus (long input, int &hours, int &min, int &sec)
{
hours = input/3600; //3600 seconds to an hour
min = (input % 3600) /60; //We consider the seconds remaining once
// the hours are taken out, then find minutes
sec = input % 60;
}
int main()
{
long value;
cout<<"Enter the number of seconds: ";
cin>> value;
int h,m,s;
sharktopus(value,h,m,s); //function call
cout<<"Hours: "<