Posts by bogan • 1 point
1 post
-
-2
votes4
answers23451
viewsA: How to convert seconds to "Hour:Minute:Second" format?
#include <stdio.h> int main() { float time, hour, min, sec; scanf("%f", &time); hour = time / 3600; min = (((time/3600) - (int)hour) * 3600)/60; sec = (min - (int)min) * 60;…