Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write a C program that a number with a decimal point is the sum of two parts : an integer part before the decimal point
write a C program that a number with a decimal point is the sum of two parts : an integer part before the decimal point and a fractional part which is after the decimal point. For example, 2.43 has 2 as the integer part and .43 as the fractional part. Similarly, -3.546 has -3 as the integer part and -.546 as the fractional part. write a program that asks you to input a number of the type double, and then outputs its integer part. for example if the input is 2.43, the output should be 2. if the input is -3.546, the output should be -3.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started