Advertisement
Guest User

Untitled

a guest
Apr 4th, 2020
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. #include <stdio.h>     
  2. main(){            
  3. float f;           
  4. printf("Enter your positive floating point number: ");
  5. scanf("%f",&f);        
  6. printf("Float\t\tIntegral\tFractional\n%f\t%.0f\t\t%f",f,f,(f-(int)f));            
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement