I was working on this clock and I need some help for the "hour" line. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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