Lets say that we have a specific string:
string a[]={"ab","cd","ef"}
and we want a specific string when we input first character of the string: for example:
input: c
output: "cd"
what i was thinking is that:
so let's say we assign char x for the input value. and then using the loop to go through the list, but i'm stuck of how char x is going to stop the loop and printing the specific string.
other question is how its going to be different to find a letter thats inside the string. for example inputing: d and output: "cd"