Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- import java.io.*;
- public class Cholsterol
- {
- final int LEVEL = 125;
- public static void main(String[] args)
- {
- System.out.println(getStatus(LEVEL));
- }
- static String getStatus(int input)
- {
- if(input < 100)
- {
- return "optimal";
- }
- if((input > 101) &&(input < 129))
- {
- return "near optimal";
- }
- if((input > 129) &&(input < 159))
- {
- return "Borderline High";
- }
- if((input > 159) &&(input < 189))
- {
- return "High";
- }
- return "Very High";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement