9.1.2: While loop with multiple conditions This actwity uses a 3d party app Thou
ID: 3787206 • Letter: 9
Question
9.1.2: While loop with multiple conditions This actwity uses a 3d party app Though your actity may be recoded, a retesh may be requined to update the banner tothe While loop with multiple conditions wrme a while loop that multplesuservalueby 2 while an ofthe following conditons are true: uservalue is not 10 uservalue is less than 25 Save C Reset MATLAB Documentation Your Solution 1 function uservalue Adjustvalue(uservalue) 3 Write a while loop that nultiplies uservalue by 2 while uservalue is not 10 and while uservalue is less than 25 userValue Run Your Solution Code to call your function when you click Run C Reset Adjustvalue (2Explanation / Answer
function userValue=AdjustValue(userValue)
while(userValue!=10&&userValue<25)
userValue=userValue*2;
end
disp uservalue;
end
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.