1.

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

Answer»

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:



Discussion

No Comment Found