I have a string that will be different every time you run the code. I want to make an if statement that compares one char, to every individual character of the string. For example, if I were to compare 'c' to cat, it will return that there is a 'c'. BUT If I compared it to orange, it would return that there is not any 'c'. I can't figure out how to do this because the string will change length every time so I cannot simply do c = a && b && c because there could be a d.
trueif the first letter is a c.return falsemust be placed after theforloop, or else it will returnfalseon the first letter if it is not a c.