If Else if statement problem
显示 更早的评论
Write a program that takes the grades of several students as a vector and Do the following(the grade should be between 0to 20): Use the “for”and conditional commands end-else-if to check each grade and change them as follows: Change scores less than 5 to 9 Change scores between 5 and 8 to 9.5. Change scores between 8 and 10 to 10. Increase scores between 10 and 15 by 1 score To increase scores more than 15 and less than 20 by 0.5 points.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Problem-Based Optimization Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!