I entered the code and ran it - video below. Not much here for experimenting and variations other than either changing the code to some other word or changing the flashing speed and delay times. I did try my hand at rewriting the code with the For loop running in reverse... (see screenshot of my modification). Was guessing about the x--, but it worked... I simply changed:
for (int x=0; x<3; x++)
to
for (int x=2; x>-1; x--)
No comments:
Post a Comment