1 2 3 4 5 6 7 8 9 10 11 12 13
#include <stdio.h> static const double grid[4][2] = {{-3 / 3., -1 / 3.}, {+1 / 3., -3 / 3.}, {-1 / 3., +3 / 3.}, {+3 / 3., +1 / 3.}}; int main() { for (int i = 0; i < 4; i++) printf("%d:%.2f,%.2f ", i, grid[i][0], grid[i][1]); printf("\n"); return 0; }