- 1
Hello need a program de convert days in second but i'm a bit disturb with the construction.....need a lift please
2 Answers
+ 2
1 day=24 hour
1 hour=60 min
1 min=60 sec
That's all you need to convert day to sec.
Also declare the language tag and clear your question.
0
you can play around with this:
#include <stdio.h>
int main() {
int days;
scanf("%d", &days);
int SecondsInOneDay = 86400;
int total = days * 86400;
//maximum days this program can take is 24855
printf("number of seconds in %d days is:%d\n",days,total);
return 0;
}