I was playing around with arrays and attempted to print all the array items using various loops. I succeed when I used for, while, do while,
However, i was unable to print using
if else loop.
Please check the below code and let me know if I made a mistake in writing the code or if using the
if else loop the desire output is not possible.