MIPI_BaseC_WebinarFRTK/16_Seminar03/01_time_p5.c

15 lines
233 B
C
Raw Permalink Normal View History

2024-11-13 09:22:28 +03:00
#include <stdio.h>
int main(void)
{
int s = 10000;
int h = s/3600;
s = s - h*3600;
int m = s/60;
s = s - m*60;
int s1 = h*60*60+m*60+s%60;
printf("s=%d m=%d h=%d s1=%d\n",s,m,h,s1);
return 0;
}