Answered You can hire a professional tutor to get the answer.

QUESTION

Using your favorite editor in Linux, write a Script file and save it as myScript.sh that asked the users to input a number between 100 and 1000. Use...

Using your favorite editor in Linux, write a Script file and save it as myScript.sh that asked the users to input a number between 100 and 1000. Use the case statement to do the following:

1. If the number is an odd number then add all the even numbers in between 1 and the number using a for loop structure.

2. If the number is an even number then add all the odd numbers in between 1 and the number using a while loop structure.

3. If the number is divisible by 3 then add all the numbers in between 1 and the number using a until loop structure.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question