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,

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!