The line printf("%d:00");
should be:
printf("%d:00", hour);
See if you can turn up your compiler warning level, modern compilers tend to be able to warn about this sort of mistake.
2
solved Range of IF statements in C programming
The line printf("%d:00");
should be:
printf("%d:00", hour);
See if you can turn up your compiler warning level, modern compilers tend to be able to warn about this sort of mistake.
2
solved Range of IF statements in C programming