Develop a C program that prompts its
user for a word that contains the sequence of
letters "reat" (for example, the user could
type in the word: great, treat, threat,
greatly or treatise), replaces that letter
sequence by "r8" and prints the result to the
screen. For the 5 example words given earlier,
the result printed by the program should be:
gr8, tr8, thr8, gr8ly and tr8ise, respectively.
Test your program and then paste it below
(note 1: you may want to start with great and
threat, and then enhance your code to also
work with greatly and treatise).
(note 2: this question is about string mani-
pulation and does NOT involve conditionals
or iteration statements).
You also might want to start - after taking into account the prior post - by posting this on the C forum, not the C++ forum.