+ 1

Algorithm Design!

Please help me in making an algorithm to print time given in sec to hr:min:sec format. thanks in advance!

5th Oct 2017, 5:00 PM
Sam
Sam - avatar
12 ответов
5th Oct 2017, 5:02 PM
Kartikey Sahu
Kartikey Sahu - avatar
+ 3
My pleasure @Sam Let me know if you have any other problem 🙂
5th Oct 2017, 5:05 PM
Kartikey Sahu
Kartikey Sahu - avatar
+ 3
@Sam Download C++ ebooks from here http://index-of.es/
5th Oct 2017, 5:07 PM
Kartikey Sahu
Kartikey Sahu - avatar
+ 3
5/2 gives quotient i.e. 2 5%2 gives remainder i.e. 1
5th Oct 2017, 5:17 PM
Kartikey Sahu
Kartikey Sahu - avatar
+ 1
thanks a lot bro! #mademyday!
5th Oct 2017, 5:03 PM
Sam
Sam - avatar
+ 1
Is this all the best way to Learn c++ any other sources recommended? @kartikey sahu
5th Oct 2017, 5:06 PM
Sam
Sam - avatar
+ 1
hey! in the prgm, hour =given sec/3600 in this case on printing hour won't it have decimal values? eg given time =8888sec 8888/3600=2.46 ?
5th Oct 2017, 5:15 PM
Sam
Sam - avatar
0
Great! Thanks a Lot mate! hope to be in touch in this journey!
5th Oct 2017, 5:08 PM
Sam
Sam - avatar
0
?
5th Oct 2017, 5:16 PM
Sam
Sam - avatar
0
Okey! Just got confused betwn them!
5th Oct 2017, 5:18 PM
Sam
Sam - avatar
0
Respect to your Courtesy!
5th Oct 2017, 5:18 PM
Sam
Sam - avatar
0
does the "" % "" find the reminder until decimal point ? ex 8888%3600 =2.4
5th Oct 2017, 5:21 PM
Sam
Sam - avatar