Advertisement
Guest User

Untitled

a guest
Mar 11th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.37 KB | None | 0 0
  1. if (bodyMassIndex < 18.5) {                                       //Give feedback on BMI
  2.     print(underweightFeedback)
  3.   } else if (bodyMassIndex >= 18.5 && bodyMassIndex < 25) {
  4.     print(normalWeightFeedback)
  5.   } else if (bodyMassIndex >= 25 && bodyMassIndex < 30) {
  6.     print(overweightFeedback)
  7.   } else if (bodyMassIndex >= 30) {
  8.     print(obesityFeedback)
  9.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement