seconds.c

/*      File : seconds.c        *
 *      By   :                  *
 *      login:                  *
 *      team :                  *
 *      Date :                  */

/*
 *   This program reads a number of seconds and computes how many
 *     hours, minutes and seconds that corresponds to.
 */


main()
{  int seconds;
   int hours, minutes

        /*  get the number of seconds  */
        printf("Enter the number of seconds: ");
        scanf("%d", seconds);

        /*  compute the number of hours  */
        hours = seconds / 3600;

        /*  compute the number of minutes  */
        minutes = seconds / 60;

        /*  compute the number of seconds remaining  */
        seconds = secondss % 60;

        /*  print the result  */
        printf("there are %d hours, %d minutes, %d seconds\n",
                hours, minutes);