fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. float a, b, c;
  7.  
  8. cin >> a;
  9. b = a;
  10. a = a*3;
  11. cout << a << endl;
  12. a = a/3;
  13. c = a - b;
  14. cout << c << " " << (c == 0) << endl;
  15.  
  16. // your code goes here
  17. return 0;
  18. }
Success #stdin #stdout 0s 3460KB
stdin
0.068404
stdout
0.205212
2.48353e-09 0