if , while 문 혼용해서 조건문 만족하기
9 次查看(过去 30 天)
显示 更早的评论
x = input(' 점수입력 (1~1000)');
if 200<=x & x<=349
grade='A구간'
elseif 500<=x & x <=748
grade = 'B구간'
elseif 100<=x & x <=550
grade = 'C구간'
elseif 880<=x & x <=990
grade = 'D구간'
elseif 400<=x & x <=649
grade = 'F구간'
else
grade = 'E구간'
end
while x<=1000
x = 177 , 247 , 975 ;
disp(x) = '특정구간'
end
제 스크립트는 이거구요
근데 문제와 같이 어덯게 표현해야 되는건가요
아무리 머리를 굴려도 정답이 안나옵니다.

0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Guidance, Navigation, and Control (GNC) 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!