Kiritilgan soat
ni kun soat:minut:sekund
ko‘rinishida ekranga chiqaradigan dastur tuzing. Soat, minut, sekund 00:00:00 shaklida chiqsin.
Kiruvchi ma'lumotlar
:
Soatning qiymati \(0\) dan \({10}^{6}\) gacha
Masalan
//Kiritilgan soat, minut ni kun soat:minut:sekund shakliga o‘tkazish
#include <stdio.h>
int main() {
int soat;
int minut;
scanf("%d", &soat);
scanf("%d", &minut);
int jami_soat = soat + minut / 60;
int jami_minut = minut % 60;
printf("%d %02d:%02d:%02d", jami_soat / 24, jami_soat % 24, jami_minut, 0);
}