This is my 2d array with available speeds listed. this code I must keep. If my user enters 75349
as their clock speed input, how will I be able to recognize that speed and return the value of the row index ?... which is row 2 int
the 2d array because it lies between 7500- 14900
int UserClockSpeedInput;
const uint32 SpeedTable[5][2] {
{15000, 99990}, //between 15k - 99.99k
{7500, 14900}, //between 7.5k - 14.9k
{3500,7400},
{1900,3400},
{6000,1800}
}
I want to return the row index of whatever value the user entered, these are the set values I already set in place. They are not allowed to enter any other values
for(i=0;i<5;i++)
{
for(j=0;j<2;j++)
{
//not sure of what to do from here.