+ 1

Why can't I get acceleration other than 0 in this code if acceleration= (velocity1 - velocity2)/time acc

https://code.sololearn.com/ciil9OHDKKjD/?ref=app

8th May 2019, 7:23 AM
Asasira Arthur
Asasira Arthur - avatar
3 Respuestas
0
Make the following variables float or double float velocity1, velocity2, acceleration; Check also time1, time2, timeacc value if it is 0 in order to avoid problems with the division.
8th May 2019, 9:50 AM
Prokopios Poulimenos
Prokopios Poulimenos - avatar
0
Thanks
8th May 2019, 9:52 AM
Asasira Arthur
Asasira Arthur - avatar