(Solved):Create your own function in C that accepts one input parameter and returns a float number. The function is for a car payment (say $260) times 5% interest. View Answer…

 

Question

Create your own function in C that accepts one input parameter and returns a float number. The function is for a car payment (say $260) times 5% interest.

 

EXPERT ANSWER

This function accepts an integer, and returns a float.

The code, in C is:

float interest(int input)
{
    return input * 0.05;
}

We are so grateful for the pleasure of serving you and hope we met your

Scroll to top