fork download
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main() {
  6. float l,t,m,x;
  7. cin>>l>>t>>m;
  8. x=(m/l+1)*t;
  9. cout << fixed <<setprecision(3)<<x;
  10. return 0;
  11. }
Success #stdin #stdout 0s 4224KB
stdin
1 2 3
stdout
8.000