function summedValue = SummationWithLoop(userNum) % Summation of all values from 1 to userNum summedValue = 0; i = 1; % Write a
while loop that assigns summedValue with the % sum of all values from 1 to userNum end
1 answer:
Answer:
function summedValue = SummationWithLoop(userNum)
% Summation of all values from 1 to userNum
summedValue = 0;
i = 0;
% use a while loop that assigns summedValue with the
% sum of all values from 1 to userNum
while(i <= userNum)
summedValue = summedValue + i;
i = i + 1;
end
end
You might be interested in
28384 *x soít cos estematema
Answer:
Complete answer to the question is explained in the attached files.please have a look on it.
Explanation:
Answer:
performance bonuses
Explanation:
Answer:
personal attack
Explanation:
it is personal attack
Answer:
Maximum number of vehicle = 308
Explanation:
See the attached file for the calculation.