Example 2: Print Fibonacci of a number using Recursion in Scala object myClass{def fibonacci(previous1:Int,previous2:Int,counter:Int,condition:Int){print(", "+(previous1+previous2))if((counter+1)<condition){fibonacci(previous2,(previous1+previous2),(counter+1),condition)}}def main(args:Ar...
1) There are the following statements that are given below, which of them are correct about recursion in PHP? When a function called by itself then it is known as recursion. PHP does not support indirect recursion. We can implement almost all programs using recursion that can be done by lo...
77. Tail recursion in Scala is - Initiated from last Initiated from the first call Answer:A) Initiated from last Explanation: The tail recursion is initiated from the last. Learn & Test Your Skills Python MCQsJava MCQsC++ MCQsC MCQsJavaScript MCQsCSS MCQsjQuery MCQsPHP MCQsASP.Net MCQs ...