Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int i=1; i<10; ++i)
- {
- Float pos = 0.0;
- Float force = 20.0;
- Float fric = 0.1;
- Float N = i;
- force *= N;
- fric = 0.5 * force * force / 5000;
- while(force > 0.0)
- {
- pos += force;
- force -= fric;
- }
- std::cout << pos << std::endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment