You are on page 1of 3

9. Write a program to input a string, then input a character.

Check if the character appears in


the string or not?

10. Write a program to input a string. How many times the character “a” appears in this
string?
11. Write a program to input a string. Count the times the characters appears in this string?
12. Write a program to input a string. Check if there is numbers in the string, print result as
“Yes” or “No”.

13. Write a program to input a string. Check if there is your name in the string, print result as
“Yes” or “No”.

You might also like