Question: Write a script that: 1. Asks the user to enter a vector with 8 values using the input() function. 2. Finds the sum of
Write a script that: 1. Asks the user to enter a vector with 8 values using the input() function. 2. Finds the sum of the following vector 3 ways: Use the sum function Use a for loop Use a while loop Appropriately format a fprintf statement that compares the 3 results.
Step by Step Solution
There are 3 Steps involved in it
script that asks the user to enter a vector with 8 values finds the sum of the vector using the ... View full answer
Get step-by-step solutions from verified subject matter experts
