When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
7 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
int total_seconds_late = (seconds_late / 60); what does this do?
That was a mistake. I forgot to take it out
It’s only meant to be in the second unit variable
@arctic stone
#include <stdio.h>
int main()
{
int total;
int min;
int sec;
printf("Enter seconds of delay");
scanf("%d", &total);
min= (total)/60;
sec=(total)%60;
printf("The student was late by %d min and %d sec", min, sec);
return 0;
}
This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.
!solved