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