fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int var1;
  6. float var2;
  7. float x=12.505;
  8. var1 = x;
  9. var2 = x - var1;
  10. cout << var1 << var2;
  11. return 0;
  12. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
120.505