1. How to make a function in C that accepts one input number and returns a double number. The themes for the functions should be :
- Squares the number and returns the result. For example, if 12.1 was entered then 146.41 would be returned.
- Provide both your C code and an example call to the C code function.
- Please explain what the function is doing.
- Include header documentation in the code as well as internal code documentation.
2. Write short program that uses a for loop to populate an array.
- The array can store up to 10 integers.
- Modify the code slightly to make a bug that would prevent the code from compiling or even better from running correctly.
- Describe what the code is designed to do.