fork download
  1. #include <stdio.h>
  2.  
  3.  
  4. int main()
  5. {
  6. int n;
  7.  
  8. printf("\nPlease input an integer to convert to a floating number:" );
  9. scanf("%d", &n);
  10. printf("\nYour float is: %.5f", (float)n);
  11.  
  12. return(0);
  13.  
  14. }
  15.  
  16.  
Success #stdin #stdout 0s 2116KB
stdin
675
stdout
Please input an integer to convert to a floating number:
Your float is: 675.00000