Modifying the program so that the xa nd y location values are shown on the LCD screen while the 'x' chasing character runs through all of the LCD cursor locations.
Structure:
for ()
{
for ()
{
Code
}
}
Example:
for (int x = 0; x<3; x++)
{
for (int y = 0; y<3; y++)
{
//Print the x and y values
}
}
If the values of x and y were printed, the output may look like this:
0, 0
0, 1
0, 2
1, 0
1, 1
1, 2
2, 0
2, 1
2, 2
Comments and Additional Information
Have some code to share? Or additional information? Respond here:
You need to be logged in to save a response on this page. The response must be constructive, helpful, supplimentary or to correct the existing video, code or narrative content.