Loop and sum, pls help!!!!

how can i cfreate a loop to read in 5 random numbers given by the users and then calculate the sum of that 5 numbers? also how can i use abs () function for this question as well?
thanks in advance!

Answers (1)

Walter Roberson
Walter Roberson on 10 Mar 2022
Edited: Walter Roberson on 10 Mar 2022
help for
help input
help sum
help abs

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Asked:

on 9 Mar 2022

Edited:

on 10 Mar 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!