fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. float money = 4.2;
  5. int cents;
  6. cents = (int)(money * 100);
  7. printf("%i", cents);
  8. return 0;
  9. }
  10.  
  11.  
  12.  
  13.  
Success #stdin #stdout 0s 2160KB
stdin
Standard input is empty
stdout
419