Sunday, 21 October 2012

Lab 14- recursive -2013

Using recursive style , create a class that receive from a user a string and a number   then  have recursive  methods that :

1.  reverse the string recursively.  eg prog  become gorp
2.  count  the number of character in the screen recursively  eg.  prog = 4
3.  using a number entered , create a fibonacci  recursive  that return the result of that particular position of the number you entered.  eg 0 = 0 , 2 = 1 , 3 =3