- 1

Hello need a program de convert days in second but i'm a bit disturb with the construction.....need a lift please

14th Aug 2021, 3:02 AM
Victor Lants
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.
14th Aug 2021, 6:39 AM
The future is now thanks to science
The future is now thanks to science - avatar
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; }
14th Aug 2021, 7:35 AM
ox titanium
ox titanium - avatar