Jumlah jam, menit, dan detik yang diberikan jumlah detik.
#include <stdio.h>
void main(void)
{
int time, hours, minutes, seconds;
printf("Input seconds: ");
scanf("%d", &time);
hours = time / 3600;
minutes = (time % 3600) / 60;
seconds = ((time % 3600) % 60);
printf("\nThere are:");
printf("\nH:M:S - %d:%d:%d", hours, minutes, seconds);
}
Lilianne Cabana