fork download
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main() {
  6. double a = 2.12, b = 3.38;
  7. a = ((b - a) / a) * 100.0;
  8. cout << fixed << setprecision(0) << a;
  9. return 0;
  10. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
59