The ___ loop provides an easy way to create a numbered menu from which users can choose option
Answers
The answer is select loop.
Explanation:
A loop that provides an easy approach for creating a numbered menu is called as a Select loop. This loop helps the user to pick out corresponding choices. It means that this loop is only suitable when a person wants to ask a user for selecting one or more objects from a defined list of varieties. Thus, this loop is considered as the uncomplicated approach for creating a numbered menu.
Select loop in Unix / Linux provides easy way to create a numbered menu from which user can choose options.
Select var in option1 , option2, ….,option n
do
Statements
done
Select Juice in Orange, apple, Butter fruit, Fig, Guava all none
do
Case $Juice in Orange| apple| Butter fruit| Fig| Guava all |none)
echo “Order juice”
…….
esac
done
Output will be:
1. Orange
2. apple
3. Butter fruit
4. Fig
5. Guava
5. None
6. All