Sidddharth
New Coder
Hello Everyone,
I want to take input from user and on basis of the input i want to show the correct value of it.
For example if user enters number 5. The correct value from the below table i.e. 1 should be displayed.
Table 1
Input Value
0-5 1
6-10 2
11-15 3
16-20 4
And so on.
The table is huge upto 20000 numbers so if else is kind of lengthy. I am looking for simpler way to solve.
Ps- i am new in the coding.
Anticipating support from the community.
Thanks in advance.
I want to take input from user and on basis of the input i want to show the correct value of it.
For example if user enters number 5. The correct value from the below table i.e. 1 should be displayed.
Table 1
Input Value
0-5 1
6-10 2
11-15 3
16-20 4
And so on.
The table is huge upto 20000 numbers so if else is kind of lengthy. I am looking for simpler way to solve.
Ps- i am new in the coding.
Anticipating support from the community.
Thanks in advance.