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