The output would be
the ouput will be
in the first iteration x=4 and y=0 so x!=y then it prints 40
in the second iteration x=3 and y=1 here x!=y so it prints 31
in the next iteration x=2 and y=2 here x=y hence the loop terminates
can u suggest some matrial for loops?
Just google it u will find many relevant articles .