code is too long
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (1)
Nicolò
le 31 Mar 2013
0 votes
2 commentaires
Image Analyst
le 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ò
le 31 Mar 2013
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!