Question: write a C program that integer to double: write a function named f that takes an integer value as its parameter. when you call the
write a C program that integer to double: write a function named f that takes an integer value as its parameter. when you call the fucntion with an integer, it should return a number of type double with the same value as the integer. Use it with a main function that asks the user to input an integer, then calls the function with the value the user input, and outputs the returned value. please not that this question test you ability to write a function and you will lose 5 points if you do not use a function. the input format must be for an integer and the output must be in a format appopriate for the type double.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
