Question: 1. Create a function called square() which will accept one input argument and return the squared value of the input argument as an output
1. Create a function called square() which will accept one input argument and return the squared value of the input argument as an output argument (result). Then call the function with the following: 1. square(2) 2. square(2^2) 3. Create a vector [1 2 3 4) and send the vector as input argument to square() 4. Display the functions' description using help. (Hint: You must write commentary inside your function body)
Step by Step Solution
3.37 Rating (156 Votes )
There are 3 Steps involved in it
C example implementing the square function and demonstrating its usage in various scenar... View full answer
Get step-by-step solutions from verified subject matter experts
