mirror of
https://github.com/ada-dmitry/TMP_C712.git
synced 2026-09-24 09:10:16 +00:00
upgrade
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
void min2time(int mm, int *ph, int *pm)
|
||||
{
|
||||
*ph = (mm / 60) % 24;
|
||||
*pm = (mm - ((mm / 60) % 24) * 60) % 60;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
|
||||
void min2time(int mm, int *ph, int *pm);
|
||||
|
||||
int main()
|
||||
{
|
||||
int mm, h, m;
|
||||
scanf("%d", &mm);
|
||||
|
||||
min2time(mm, &h, &m);
|
||||
|
||||
printf("%02d:%02d\n", h, m);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Executable
BIN
Binary file not shown.
Reference in New Issue
Block a user