Computer Science, asked by saziakhandoker2000, 4 months ago

Write a program that reads four strings and prints only those strings
beginning with the letter ‘H’.

Answers

Answered by ItzmysticalAashna
4

Answer:

Given a string, a character, and a count, the task is to print the string after the specified character has occurred count number of times.Print “Empty string” in case of any unsatisfying conditions.(Given character is not present, or present but less than given count, or given count completes on last index). If given count is 0, then given character doesn’t matter, just print the whole string.

Examples:

Input : str = "This is demo string"

char = i,

count = 3

Output : ng

Input : str = "geeksforgeeks"

char = e,

count = 2

Output : ksforgeeks

Mark as brainliest

Explanation:

Similar questions