Question: String dataString is read from input. If dataString does not contain character ' f ' , then output Character ' f ' is not found.
String dataString is read from input. If dataString does not contain character then output "Character is not found." Otherwise, output:
"Last occurrence of character is at index
the index of the last occurrence of in dataString
End with a newline.
Ex: If the input is celery, then the output is:
Character is not found.
Ex: If the input is ruffing, then the output is:
Last occurrence of character is at index
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
