fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. //input
  6. int x;
  7. int y;
  8. cin>>x>>y;
  9.  
  10. //algorithm
  11. double r =(double)y/x;
  12. //output
  13. cout<<"Return rate of this year=(%)"<<r<<endl;
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5288KB
stdin
123 4
stdout
Return rate of this year=(%)0.0325203