Question: Write a bash script that uses the while loop to perform the following: Ask the user to enter six integer numbers ( which may be
Write a bash script that uses the while loop to perform the following:
Ask the user to enter six integer numbers which may be negative or nonnegative Separately compute the product of nonnegative and negative numbers. Then, display the two results, as well as the count for each type.
InputOutput Example:
Enter int number :
Enter int number :
Enter int number :
Enter int number :
Enter int number :
Enter int number :
The count of nonnegative numbers is:
The nonnegative product result is:
The count of negative numbers is:
The negative product result is:
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
