+ 7

I was working on this clock and I need some help for the "hour" line.

For min and sec I made 360/60 (deg/sec) (deg/min) For hour I made 360/24 and i got 15. But if I replace the "6" from the code with "15" the result is not correct according to my clock. What do I need to do? https://code.sololearn.com/Wh3f30K3Nh5G/?ref=app

25th Jul 2019, 1:04 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
3 odpowiedzi
+ 1
I replaced the six with a 30 and now it works.
25th Jul 2019, 1:21 PM
Julian Dörling
Julian Dörling - avatar
+ 4
I did that and now it seems to be correct. I made a mistake when I did 360/24. It should have been 360/12 Thank you.
25th Jul 2019, 1:22 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
0
No Problem
25th Jul 2019, 1:23 PM
Julian Dörling
Julian Dörling - avatar