Creating Range Table
<p>First the thread name might be a little strange but i will try my best to explain what i want to do here so you can suggest me a good thread name.</p>

<p>I want to create a function to return the employee level by checking his experience</p>

<p>If experience is 0~50 he is level 1
If experience is 50~150 he is level 2
... and so on till level 100</p>

<p>What i am thinking of is creating a const int that holds all required exp for each level </p>

<pre><code>public const int Level1 = 50,
                 Level2 = 150...;
</code></pre>

<p>so is there a way to make a function to return what i want ? without the use of 1000++ lines ?!. </p>

<p>Please don't consider my question as a spam i am only very confused and i will try my best to clarify my idea if needed.</p>
