Question: Matlab Assume the variable diceRoll is defined as a list of integers representing dice rolls. Write a code segment that utilizes a loop to total
Assume the variable diceRoll is defined as a list of integers representing dice rolls. Write a code segment that utilizes a loop to total op all of the numbers in the list up to, but not including the first value of six Store the result in the variable totRoll Notes Your code must use a loop You may assume that is always in the list Your codemust work for any valid list of numbers Do not include any test cases in the code you submit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
