Community Profile

photo

Anna Bradley


Active since 2013

MATLAB student.

Statistics

  • Thankful Level 1

View badges

Content Feed

View by

Question


I need help with a loop.
The program that I am creating needs to go through all of the steps for multiple people until 0 is entered. For example: ...

11 years ago | 2 answers | 0

2

answers

Question


I am trying to complete a while loop that uses letters instead of numbers as the accepted input. The accepted inputs are M,m,F,f. How do I prevent other inputs from getting through?
% (calculating the Ideal Body Weight (IBW)) ideal_body_weight_male_kg = 50.0 + (2.3 * (height_inches - 60)); ideal_body_weig...

11 years ago | 1 answer | 0

1

answer