Info

この質問は閉じられています。 編集または回答するには再度開いてください。

help me do while function

1 回表示 (過去 30 日間)
THANH NGUYEN
THANH NGUYEN 2013 年 2 月 26 日
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

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by