Language C
Description Seconds total on a day until a determitated time
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>
#include <stdlib.h>

int main (void)
{
    int hours, minutes, seconds, total_of_seconds;
    printf ("Enter the value of total of seconds: ");
    scanf ("%d", &total_of_seconds);
    (void) getchar ();
    minutes=total_of_seconds/60;
    seconds=total_of_seconds%60;
    hours=minutes/60;
    minutes=minutes%60;
    printf ("Value of hours: %d\n", hours);
    printf ("Value of minutes: %d\n", minutes);
    printf ("Value of seconds: %d\n", seconds);
    putchar ('\n');
    system ("pause");
    return EXIT_SUCCESS;
}