Question: Need help!! Due at 11pm tonight!!! Please!!! In one program, write 3 functions. Write the function body for each: int squareInteger s(int x) double squareDouble(double
Need help!! Due at 11pm tonight!!! Please!!!
In one program, write 3 functions. Write the function body for each: int squareInteger s(int x) double squareDouble(double d) float squareFloat (float f) They basically do the same thing, square a number, but use different argument datatypes. Test Each function: Using int 6, double 6.9, float 9.1 What happened when you use the 1 correct data type as input? What happened when you use the 2 incorrect data types as inputs? What is the lesson this teaches you about functions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
