Interval

  • 3
  • Locked
Implement the checkInterval method. The method should check whether an integer is between 50 and 100, not inclusive, and report the result on the screen in the following form: "The number a is not in the interval." or "The number a is in the interval.", where a is the method argument. Example for 11
You can't complete this task, because you're not signed in.
Comments (3)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Anonymous #11021918
Level 5 , Tucker, United States
17 July, 20:50
I completed it by using a nested if, else statement. Is there another way?
Krig Raseri
Level 23 , Dallas, United States
5 August, 06:46
Using && I guess. I just used one if statement and one else statement.
Ali_Alshehri
Level 5 , Saudi Arabia
24 April, 03:54
easy