Write a program that uses a user defined function called 'truncate()' which separates the integer and the decimal part from a float value.
The prototype for this function is as follows :
void truncate (float);
The function accepts a float value from main () and truncates the decimal part of the variable
plz help