I'm trying to write a program that takes a certain number of words (let's call them censored) as input and a couple of sentences. For output it prints out the same sentences only now instead of the censored words there are '*' for the number of letters they have. Example: input: 2, cat, dog, Cats and dogs like to play. output: ***s and ***s like to play.
Could anyone please give me any guidelines with this? Thanks.
Aucun commentaire:
Enregistrer un commentaire