#include typedef struct Point { double x; double y; } point; int main() { point t[3]; int i; for (i = 0; i < 3; i++) { t[i].x = i; t[i].y = 2 * i; printf("%lf %lf\n", t[i].x, t[i].y); } }