help me do while function
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
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
1 comentario
Walter Roberson
el 26 de Feb. de 2013
Respuestas (0)
La pregunta está cerrada.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!