+ 1
Why can't I get acceleration other than 0 in this code if acceleration= (velocity1 - velocity2)/time acc
2 Answers
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.
0
Thanks