Question: Using Fedora or other LInux-based OS: Create a looping shell script to do the following: Count backwards from 97 to 46 with increments of 3
Using Fedora or other LInux-based OS:
Create a looping shell script to do the following:
- Count backwards from 97 to 46 with increments of 3
- Count each loop
- Keep a separate count of the total and display them at the end.
- 97 + 94 = 191
- 191 + 91 = 282
- 282 + 88
- At the end of the program print out:
- Number of total times program went thru the loop
- Total of all numbers added up in 3.
- Print out the todays date
- Print out your username (using the variable $username).
Thank you!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
