Simulation of gravity

No.13160565 ViewReplyOriginalReport
I'm looking to program a basic simulation of a solar system. I'd like to have believable orbital mechanics of bodies around a host star, but I'm lost as to how I actually simulate gravity.

Would something like Newton's law of universal gravition and it's formula for calculating an object's gravitational force be sufficient for simulating the gravitational effects of bodies in a solar system or do I need something more?