fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. float a = 1.26558;
  5.  
  6. int c = a * 100;
  7. float b = c / 100.0;
  8. printf("b = %f", b);
  9.  
  10. // your code goes here
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 4520KB
stdin
Standard input is empty
stdout
b = 1.260000