Question: This is a MatLAB question. Well give thumbs up for correct answers. Create a script file to find the sum of the first N integers
Create a script file to find the sum of the first N integers starting with 1. Prompt the user to enter the integer, N, they want to sum up to. Use a for loop to determine the Sum. Print the output to the command window with a statement that includes the value for N and the value of the Sum. Check your results using the following formula. Paste the Script file below and paste two sample outputs: for N = 3 and N = 30
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
