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 'f', then output "Character 'f' is not found." Otherwise, output:
"Last occurrence of character 'f' is at index "
the index of the last occurrence of 'f' in dataString
"."
End with a newline.
Ex: If the input is celery, then the output is:
Character 'f' is not found.
Ex: If the input is ruffing, then the output is:
Last occurrence of character 'f' is at index 3.
 String dataString is read from input. If dataString does not contain

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!