/***************************************************************************** * Outputs the number of hours, minutes, seconds that are in * * so many seconds. * * Inputed: a (# of seconds) * * Outputed: h, m, s (amount of hours, minutes, and seconds) * * Written: September 28, 2001 * * By: Ronald Roberts * *****************************************************************************/ //Program 13 //28SEP01 #include #include #include int main() { /* variable declaration and I/O Mannipulation */ cout<>a; /* cal code */ m=(a/60); a=a%60; h=m/60; m=m%60; s=a; /* output */ cout<<"Hours, Minutes, and Seconds you have are:"<