Question: Write a program that inputs two numbers of the type double, interchanges their fractional parts and outputs them. For example if the numbers input are

Write a program that inputs two numbers of the type double, interchanges their fractional parts and outputs them. For example if the numbers input are 2.4 and 12.9, the output should be 2.9 and 12.4. If the numbers are -3.3 and 2.2 the output should be -3.2 and 2.3. You must input the values as type double
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
