Assume s is a string of lower case characters.

write a program that prints the number of times the string 'bob' occurs in s. for example, if s = 'azcbobobegghakl', then your program should print

number of times bob occurs is: 2

Solved
Show answers

Ask an AI advisor a question