code is too long
Show older comments
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
Accepted Answer
More Answers (1)
Nicolò
on 31 Mar 2013
0 votes
2 Comments
Image Analyst
on 31 Mar 2013
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ò
on 31 Mar 2013
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!