how to put a loop for the entered value
I have 6 different scenario or cases and in my selection screen i am entering a value say 10. then in my program, it should go to all the 6 cases along with the first 4 cases. so the total turn is 10.
if the value is 20, then it should go 3 times to all the 6 cases + first 2 cases.
how can i handle this. provide the coding if possible.
thanks in advance
points will be rewarded