#include <stdio.h>

typedef struct {
    int totalMinutes;
    int hour;
    int min;
} ScreenTime;

int main() {

    ScreenTime std = {145};
    std.hour = std.totalMinutes / 60;
    std.min = std.totalMinutes - (60 * std.hour);
    printf("%d시 %d분 사용했습니다",std.hour,std.min);

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: