I need to write some code using some for-loops which tests the values of some array data.
1st pass: checking the following…
{x0,y0}
2nd pass: checking the 4 bits of data…
{x0,y0}, {x1,y0},
{x0,y1}, {x1,y1}.
3rd pass: checking 9 bits of data…
{x0,y0}, {x1,y0}, {x2,y0},
{x0,y1}, {x1,y1}, {x2,y1},
{x0,y2}, {x1,y2}, {x2,y2}.
My little brain doesn’t seem to want to function to get this answered. Can anyone help?
Maybe something like this?