Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (bodyMassIndex < 18.5) { //Give feedback on BMI
- print(underweightFeedback)
- } else if (bodyMassIndex >= 18.5 && bodyMassIndex < 25) {
- print(normalWeightFeedback)
- } else if (bodyMassIndex >= 25 && bodyMassIndex < 30) {
- print(overweightFeedback)
- } else if (bodyMassIndex >= 30) {
- print(obesityFeedback)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement