fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. double n = 54.1;
  6. int isei = (int)n;
  7. double syou = n - isei;
  8. printf("%d %lf", isei, syou);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
54 0.100000