Computer Science, asked by ningukoulapure27, 7 months ago

Write a function which takes a list of string urls as an input and returns a list of those urls which end in .html

Answers

Answered by ramaswamygavidi
0

no answer sorry please sorry

Answered by dreamrob
0

Program is in C++ language. The answer is attached in the form of picture.

Some pre-defined functions used are

Some pre-defined string functions are used in the program.

A user-defined function:

void print(string ch) : This function check whether the string ends according to the user's requirement

If the string ends according to the requirement then we print that string.

Two loops are used

One for taking several inputs.

Second for checking whether the string ends accordingly.

Attachments:
Similar questions