我编的时间相加问题有问题,请高手指点,我是新手
#include<stdio.h>
void main()
{
int hour1,minute1,hour2,minute2,hour3,minut3;
scanf("%d%d,%d%d",hour1,minute1,hour2,minute2);
hour3=hour1+hour2,minut3=minute1+minute2;
printf("%d%d",hour3,minut3);
if (minut3>=60)minut3=0,hour3=hour3+1;
if(hour3>=24)hour3=0;
}