Hi all!
I'm currently trying to write a program that takes a character from a user and determines if that character is present within a string. For example, let's say theuser enters the letter 'r' and I want the system to determine how many times the character 'r' is present in the phrase "Chocolate is good for you.", so the system would return '1' since 'r' is only in that phrase once.
Your help is appreciated!
Laina
I'm currently trying to write a program that takes a character from a user and determines if that character is present within a string. For example, let's say theuser enters the letter 'r' and I want the system to determine how many times the character 'r' is present in the phrase "Chocolate is good for you.", so the system would return '1' since 'r' is only in that phrase once.
Your help is appreciated!
Laina