i dont understand looping at all.
plese help if you can.
i know its like doing my work for me but yeah i dont know looping.
create a program that keeps reading a sentence and a character and displays how many times the character appears in the sentence until user enters a $ for the character at which point the program displays the number of times a sentence was entered. Each sentence is considered finished when the user enters a period.
example of program
Enter the character to count: a
Enter a sentence ending in a period: i like red apples.
a appeard 1 time.
Enter the character to count: o
Enter a sentence ending in a period: tomorrow im going to play soccer.
o appeared 6 times.
Enter the character to count: $ (stops program)
2 sentences were entered.
Press any key to continue.