#define PI 3.14159265359 #define FILE_NAME "out.txt" typedef struct{ double mass; //mass of a particle double pos[3]; //pos of a particle (3D coordinate) double vel[3]; //velocity of a particle (3D coordinate) }body;