BUILT-IN AND USER-DEFINED FUNCTIONS

The length of the text is: 19
Hello, King Richard! Your Home Camelot is ready!

Built-in Function: strlen()

strlen() calculates the length of a string. I used it to determine the length of the text: "Welcome to Camelot!"

User-defined Function: greetKing()

greetKing()which returns a personalized greeting: "Hello, King Richard! Your Home Camelot is ready!" By using user-defined functions, you can create your own reusable pieces of code.