Can anyone help me create a c++ function that does the following:
Takes a parameter(s) and the next largest number that starts with the same letter as the inputted number will be the same as the inputted variable.
For example:
If the input is 2, then the output is 3 (because the two start with a T, so the next largest number will be three because it also starts with a T).
If the input is 8, the output will be 11 (because the eight starts with an E, so the next largest number will be 11 because it also starts with an E).
If the input is 18, the output will be 80 (because eighteen starts with an E so the next largest number that starts with an E will be 80).