Question: Specifically, generate a random number between loop, prompt the user to enter a number between 1 and 10. If the user's guess iS correct, then
Specifically, generate a random number between loop, prompt the user to enter a number between 1 and 10. If the user's guess iS correct, then print a congratulatory message with the correct number generated by usive en the SRANDOM function. Oth aprroprate failure message and ask the user to try again. You Will keep prompting the teer and reading the user's guess until the user gues es the number correctly erwise, if the user's guess is not correct, print out an 9 This bash script should be called rec04C.sh. SAMPLE OUTPUT (input in bold): $./rec04C.sh Enter a number between 1 and 10: 5 Sorry, you are not correct. Try again! Enter a number between 1 and 10: 9 Sorry, you are not correct. Try again! Enter a number between 1 and 10: 2 Congratulations, the number is 2. 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
