fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. double d=1.0 * 3/2;
  7. double c= 3/2 * 1.0;
  8. double f=(double)3/2;
  9. cout<< d <<" "<< c<<" "<<f<<endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 4520KB
stdin
Standard input is empty
stdout
1.5  1 1.5