Question: in codeblock c++ 3. Write a program that requests a floating number and then separately outputs the integer and fractional parts to the output console.
3. Write a program that requests a floating number and then separately outputs the integer and fractional parts to the output console. (The integer part, or integral part of a decimal number is the part to the left of the decimal separator. The part from the decimal separator to the right is the fractional part.) Output Example: INTEGRAL AND FRACTIONAL Enter a floating point value: 3.1415926 Integer part is 3. Fractional part is 0.14159
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
