fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. double funcshn(double&);
  5.  
  6. int main(){
  7. int i = 0;
  8. double x = 0;
  9. double y = 10;
  10. for (i = 0; i < 10; i++){
  11. x = x + funcshn(y);
  12. }
  13. cout << x;
  14. }
  15.  
  16. double funcshn(double &y){
  17. return y+10;
  18. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
200