I think this is an interesting question. We can loop in one way but can we loop it backwards in the same line? Let me explain what I mean. Here is an example code:
for(int i = 0; i < 5; i++) { // we all know the output will be 0,1,2,3,4
I am looking if there is any workaround so that the above statement can print 0,1,2,3,4,3,2,1,0?