URI Online Judge Solution | 1037 Interval

Here is a link

http://www.mathsisfun.com/sets/intervals.html

Check there about the interval notation section…

Interval Notation

In “Interval Notation” we just write the beginning and ending numbers of the interval, and use:

  • [ ] a square bracket when we want to include the end value, or
  • ( ) a round bracket when we don’t

Like this:

Interval Notation

Example: (5, 12]

Means from 5 to 12, do not include 5, but do include 12

Wrong answer 20% code: