code is too long
显示 更早的评论
a = 4;
b = input ('2+2=? ')
if b == a
'ok'
else
b = input ('retry ')
if b == a
'ok'
else
b = input ('retry ')
if b == a
'ok'
else 'NOK'
end
end
end
采纳的回答
更多回答(1 个)
Nicolò
2013-3-31
0 个投票
2 个评论
Image Analyst
2013-3-31
This is not an answer to your question. It should have been a comment to my answer so I'll put the response there.
Nicolò
2013-3-31
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!