1. Chapter 6: FunctionIn this chapter, you will learn about Introduction to function User define functionFunction prototype (declaration)Function definitionFunction call…