Store the numbers 3 and 4 in variables and print their exact midpoint (the average) as a double — do not lose the fractional part.
double
The program prints 3.5.
3.5