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