kavya_mc:
can anyone provide some suggestion?..
Yes several.
- Start your own thread with this question.
- Learn about arrays.
- Learn how to access each element in an array using a for loop.
- Think if you need or can have an array entry for every possible input value. Think about interpolating between two entries.