tournesol
2010-02-23 22:55:30 UTC
The program should display the output to screen as
Enter a floating-point + [ENTER] : 135.246
The ten digit of the integral part: 3
The second most significant digit of fractional part: 4
Enter another floating-point + [ENTER] : 296.135
The ten digit of the integral part: 9
The second most significant digit of fractional part: 3
I know how to use printf and scanf... For scanf I had the input stored as floating-points. I know how to find the 10-digit integral part from integers, but I don't know how to extract it from a floating point. Help please!