0
I was thinking about a project for testing Skills, about a load bar and I thought, we can undo a modification on a page normally, but and do the opposite process ? for example, we have an automatic slideshow, every 1 second it changes image, always advancing, but when do we get to the end of the slideshow ? normally, it goes back the whole process at once, throwing us back to the first slide, but what if, at the end of the slideshow, we did the reverse process, going back every second, an image, and at the end of it, the process started again, how could this be done ?
EX:
need to perform a function over and over until it reaches the goal, when it reaches the goal, I need to call another function, which will perform the reverse of the previous one, which in turn, when finished, will call the first function again.
this will make the end, it takes turns between last and penultimate
– Murilo Melo
No. Note that it changes direction only when it is less than 0 or more than the number of slides.
– Reginaldo Rigo