INTRODUCTION EXAMPLE Recursive Function
Introduction  Recursive functions are those function which are call themselves repetitively.  The function call themselves repetitively until certain condition is satisfied.  The recursive function have following types of statements:  A statement or condition to determine if the function is calling itself again.  Function call which should have argument  Conditional statement(if-else)  A return statement.
OUTPUT
Class Work  WAP to find the product of two numbers using recursion.  WAP to find a^b using recursion.

Recursive Function

  • 1.
  • 2.
    Introduction  Recursive functionsare those function which are call themselves repetitively.  The function call themselves repetitively until certain condition is satisfied.  The recursive function have following types of statements:  A statement or condition to determine if the function is calling itself again.  Function call which should have argument  Conditional statement(if-else)  A return statement.
  • 4.
  • 5.
    Class Work  WAPto find the product of two numbers using recursion.  WAP to find a^b using recursion.