I have done some code but I am getting errors because I can\'t use an if-else inside the loop. Its restriction. Then I used switch inside the loop but I want to know if ther