fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4.  
  5. std::cout << (1 + 2)/2 << std::endl;
  6. std::cout << (1 + 2)/2.0 << std::endl;
  7. return 0;
  8. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
1
1.5