Task

Pass a function     as an argument     to another function.



Related task

   First-class functions


 
PROGRAM FUNC_PASS
 
  FUNCTION ONE(X,Y)
     ONE=(X+Y)^2
  END FUNCTION
 
  FUNCTION TWO(X,Y)
     TWO=ONE(X,Y)+1
  END FUNCTION
 
BEGIN
  PRINT(TWO(10,11))
END PROGRAM
 