Question: %% #2 % % WRITE CODE BELOW: % Step 1: Create a vector x of the numbers 1 through 100 % Step 2: Find the

%% #2 % % WRITE CODE BELOW: % Step 1: Create a vector x of the numbers 1 through 100 % Step 2: Find the sum of all numbers from 1 to 100 % Step 3: Compute 100* (100+1)/2 % Note: This method works regardless of what you replace 100 with % % % %% #3 % % WRITE CODE BELOW: % Step 1: Set x=(3,9,5,10,1,0,7,9) and c=0 % Step 2: Use a for loop that loops through x, and if an entry of x is % strictly larger than 5, add 1 to the counter c. %
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
