#include #define NM 10 /* Maximum number of atoms */ main() { int i, natom; double x[NM], y[NM], vx[NM], vy[NM]; /* x[i] : x coordinate of i atom */ /* y[i] : y coordinate of i atom */ /* vx[i] : x velocity of i atom */ /* vy[i] : y velocity of i atom */ natom = 10; /* The number of atoms */ for (i = 0; i < natom; i++) { /* Data input */ scanf("%lf%lf%lf%lf", &x[i], &y[i], &vx[i], &vy[i]); /* Data output */ printf("%2d %15.8e %15.8e %15.8e %15.8e\n", i, x[i], y[i], vx[i], vy[i]); } }