Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

help me do while function

1 Ansicht (letzte 30 Tage)
THANH NGUYEN
THANH NGUYEN am 26 Feb. 2013
Is the person a female or male? Enter F or M: x
It should be like this
Is the person a female or male? Enter F or M: f
The ideal weight is 145.94 pounds.
gender = input('Is the person a female or male? Enter F or M: ','s');
while (gender ~= F || gender ~= f || gender ~= M || gender ~= m)
gender = input('Is the person a female or male? Enter F or M: ','s');
end
what wrong with my code? Thanks

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by