Similar Collections


This study list contains Ruby user-defined functions programs, practice these Ruby programs to learn the concept of user-defined functions/methods, these programs contain the solved code, outputs, and the detailed explanation of the statements, functions used in the Ruby user-defined functions programs.

questions

Title
Ruby program to create a user-defined function without argument and without a return value
Ruby program to create a user-defined function with arguments but without a return value
Ruby program to create a user-defined function without argument but return a value
Ruby program to create a user-defined function with arguments and a return value
Ruby program to pass an array to the user-defined function
Ruby program to return an array from the user-defined function
Ruby program to pass a string to the user-defined function
Ruby program to return a string from the user-defined function
Ruby program to return multiple values from the user-defined function
Ruby program to create a simple recursive function
Ruby program to calculate the factorial of given number using recursion
Ruby program to print the Fibonacci series using recursion
Ruby program to calculate the power of a given number using recursion
Ruby program to count the digits of a given number using recursion
Ruby program to find the sum of the digits of a given number using recursion
Ruby program to find the reverse of a given number using recursion
Ruby program to find the given number is PRIME or not using recursion
Ruby program to find the LCM of two given numbers using recursion
Ruby program to find the GCD of two given numbers using recursion
Ruby program to find the HCF of two given numbers using recursion
total questions: 23

Questions

23

Views

630

Best Answers

299

Points

5