Function Fountain

"There is no function
without fun"

Welcome to 🌟 Function Fountain 🌟! Dive into a world of coding with examples in all major programming languages! πŸš€ Whether you’re a beginner or a pro, explore, learn, and elevate your skills with us! πŸ’» Happy Coding! 🌐

ImageFunctionDescriptioncomplexity
findCube()This function calculates the cube of an input number.1
findHappyNumbersRange()This function finds all the happy numbers in a given range.2
calculateVolumeSphere()A function to calculate the volume of a sphere given its radius.2
calculateVolumeTrapezoidalPrism()Java function to calculate the volume of a trapezoidal prism2
FindModeInArray()A function that finds the mode in an array.2
generate-prime-numbers-range()This function generates prime numbers within a given range.2
calculateSurfaceAreaPyramid()This function calculates the surface area of a pyramid.2
CountVowels()A function to count vowels in a string in Java.2
findArmstrongNumbersInRange()A function that finds all Armstrong numbers within a given range.2
findSquareRoot()This function implements the math.sqrt() method in java to find the square root of a given number.1
Convert Hexadecimal to Octal in Java()A Java function to convert a hexadecimal input into octal.2
findModeNumbersRange()Find the mode (most frequent number) within a range of numbers in an array.2
()
findPalindromeNumbersInRange()A function that finds palindrome numbers within a given range.2
Convert Hexadecimal to Binary()This function converts hexadecimal numbers to binary2
calculateAreaRhombus()A Java function to calculate the area of a Rhombus.1
calculateVolumeCone()This function calculates the volume of a cone using Java.2
find-sum-cubes-range()This function finds the sum of cubes of a range of numbers.2
convertMonthsToYearsAndMonths()This function converts total months into years and remaining months.1
calculateVolumeRectangularPrism()A function to calculate the volume of a rectangular prism1
findDistanceBetweenTwoPoints2D()This function calculates the distance between two points in a 2D plane.2
Decimal to Hexadecimal Conversion()This Java function converts a decimal number to its equivalent hexadecimal value.1
Find Second Largest Element()This function retrieves the second largest element from an array of integers.2
capitalizeWords()A function to capitalize first letter of every word in a string.2
CheckLeapYear()This function determines whether a given year is a leap year.1
findAngleBetweenClockHands()Computes the smaller angle between the hour and minute hand of a clock.1
find-circumference-circle()A function to calculate the circumference of a circle.1
calculateVolumeConeInCylinder()This function calculates the volume of a cone within a cylinder.2
CalculateVolumePyramidInCube()A function to calculate the volume of a pyramid that fits inside a cube in Java.2
binaryToDecimal()This function converts a binary number to a decimal number.2
calculateVolumeOfCube()This function calculates the volume of a cube given the length of one side.1
find-lucky-numbers-range()This function returns the lucky numbers within a specified range.2
find-mean-array()Calculates the average of an array values1
convertOctalToBinary()This function converts an octal number to its binary equivalent.2
check-odd()Checks if a number is odd1
find-nth-perfect-number()This function finds the Nth perfect number in Java.3
find-harshad-numbers-range()This function finds all Harshad numbers within a given range.2
checkSortedArrayAsc()Check if an array is sorted in ascending order.
find-square-numbers-range()This function returns square numbers within a given range2
find-lcm()A Java function to find the least common multiple of two numbers.2
calculateDistanceTraveled()A function to calculate distance traveled given speed and time1
Check-Even Number Function()This function checks if a number is even or not.1
DecimalToBinary()A function that converts a decimal number to binary.1
find-nth-perfect-number-range()Find the Nth perfect number within a range2
findCubeRoot()This function calculates the cube root of a given number in Java.2
checkPrime()This function checks if a number is prime2
convertToUpperCase()This function converts a string to upper case.1
findDistanceBetweenTwoPoints3D()This function calculates the distance between two points in 3-dimensional space.2
Calculate Array Sum()A function that calculates the sum of all elements in an array.2
calculateSurfaceAreaCylinder()This function calculates the total surface area of a cylinder.2
Find Array Average in Java()A Java function to calculate the average of an array values.2
()
Calculate Surface Area of a Sphere in Java()This java function calculates the surface area of a sphere given its radius2
convertCelsiusToFahrenheit()This function converts a given temperature from Celsius to Fahrenheit1
checkPerfectSquare()Checks if a number is a perfect square.1
ReverseArray()Function to reverse an array.2
calculateAverageSpeed()This function calculates the average speed based on distance and time.1
Decimal to Octal Converter()This is a Java function that converts decimal numbers into octal form.2
Find Square()This function calculates the square of a number.1
sortArrayAsc()A function that sorts an array in ascending order2
findArrayDifference()Function to calculate the difference between two arrays2
findMedianNumbersRange()This function finds the median of a range of numbers.2
calculateCompoundInterest()This function calculates the compound interest on a given principal at a certain rate for a certain period.2
calculate-hypotenuse()This java function calculates the hypotenuse of a right-angled triangle given the size of the other two sides.2
calculate-lcm-array()This function calculates the least common multiple (LCM) of an array of integers.2
MultiplyTwoNumbers()This function multiplies two provided numbers and returns their product.1
findTriangularNumbersInRange()A function to find Triangular numbers in a given range.2
findArrayIntersection()This program finds the intersection of two arrays in Java.2
calculateVolumeConeInSphere()This function calculates the volume of a cone inscribed in a sphere given the radius of the sphere.2
generateRandomPassword()This function generates a random password.2
convertFahrenheitToCelsius()A function to convert Fahrenheit to Celsius in Java.1
findSumOfDigits()The function calculates the sum of digits in a provided number.2
Find Minimum Element in an Array()This function helps find the smallest element within an array.1
DivideTwoNumbers()A Java function to divide two numbers1
findPerimeterIsoscelesTriangle()This function calculates the perimeter of an isosceles triangle.2
Check Palindrome()A function to verify if a string is palindrome or not.2
findNarcissisticNumbersRange()Finds Narcissistic numbers in a given range.2
Calculate Sphere Volume In Cylinder()This function calculates and returns the volume of a sphere within a cylinder.2
Find ASCII Value()A function that finds the ASCII value of a character.1
Hexadecimal to Decimal Converter()This program converts hexadecimal input into decimal output.2
Check Element in Array()This function checks if a given element is present in an array.1
calculate-time-taken()Calculate the time taken between start and end time3
findMedianArray()This function finds the median value from an array of integers.2
subtractTwoNumbers()This is a java function to subtract two numbers.1
Convert Octal to Hexadecimal()This function converts a number from octal (base 8) to hexadecimal (base 16).2
findFactorsNumber()This function determines the factors of a given number.2
Convert Binary to Hexadecimal()This function converts binary numbers into hexadecimal form.2
convertOctalToDecimal()This function converts an octal number to decimal.2
generateRandomNumber()This function generates a random number in Java.1
CountWords()A function that counts the number of words in a given string.1
generate-nth-prime-number()Java function to calculate and return the nth prime number.2
find-power()Function to calculate the power of a number.2
CalculateAreaEllipse()This program calculates the area of an ellipse using the formula Ο€ab, where a and b are the lengths of the major and minor axes respectively.2
calculateVolumeTriangularPrism()This function calculates the volume of a triangular prism.1
convertHoursToDaysAndHours()Converts given hours into number of days and hours1
findMaxElement()This function returns the maximum element in an array.2
findArrayUnion()This java function finds the union of two arrays.2
generateRandomString()Generates random alphanumeric strings of a specified length.2
findAverageNumbersRange()A java function that finds the average of numbers within a range.2
findPerimeterPentagon()This function calculates the perimeter of a Pentagon.1
Calculate Simple Interest()This function calculates the simple interest given the principle amount, rate of interest, and time period.1
findPerimeterOctagon()A function to find the perimeter of an octagon.1
Find Strong Numbers in Range()A function to list all strong numbers in a given range.2
Calculate Factorial()Function for calculating factorial of a number2
Find Second Smallest Element()A function that returns the second smallest element from a given array2
findCharacterFromASCII()This function converts an ASCII value to its corresponding character in Java.1
Find Nth Fibonacci Number()This function calculates the Nth number in the Fibonacci sequence.2
countConsonants()Function to count the consonants in a string.2
concatenateStrings()A Java method to concatenate two strings together.1
calculateAreaSector()A java function to calculate the area of a sector of a circle.2
Sort Array in Descending Order()This function sorts an array in descending order.2
calculate-gcd-array()A function to calculate the greatest common divisor(GCD) of an array of numbers2
checkSortedArrayDesc()Checks if a given array is sorted in descending order.1
convert-to-lowercase()A function to convert characters to lowercase.1
convertMinutesToHoursAndMinutes()Java function to convert minutes into format of hours and minutes2
convertWeeksToMonthsAndWeeks()This function converts weeks into months and weeks.1
Merge Arrays()This function merges two distinct arrays.2
Calculate Area of Trapezoid()A function to calculate the area of a trapezoid1
findSumOddNumbersRange()Java function to find the sum of odd numbers within a range2
find-element-index()The function returns the first index at which a given element can be found in the array.2
find-gcd()This function calculates the Greatest Common Divisor (GCD) of two numbers in Java.1
findSumEvenNumbersInRange()A function to calculate the sum of even numbers in a given range in Java.2
findPerimeterHexagon()A function that calculates the perimeter of a hexagon.1
removeArrayDuplicates()This function removes duplicate values from an array in Java.2
convertDaysToWeeksAndDays()Convert days to weeks and days.1
CalculateAreaParallelogram()This function calculates the area of a parallelogram.1
calculateVolumeCubeInSphere()This function calculates the maximum volume of a cube that can fit inside a sphere2
ConvertBinaryToOctal()This function converts a binary number into an octal number.2
calculateSurfaceAreaCubeInSphere()This function calculates the surface area of a cube, inscribed in a sphere.2
calculateAreaOfKite()This function calculates the area of a kite in programming.2
Add Two Numbers()A simple Java function to add two numbers.1
findFibonacciNumbersRange()This function generates a range of Fibonacci numbers in Java2
calculateSurfaceAreaCone()A function that calculates the surface area of a cone.2
calculateSlopeLine()This function calculates the slope of a line given two points.2
find-sum-squares-range()The function find-sum-squares-range calculates and returns the sum of squares of all numbers in a given range.1
calculateSurfaceAreaCube()Function to calculate surface area of a cube.1
Reverse Digits()A program that reverses the digits of a number2
find-string-length()This function calculates and returns the length of a given string. It's implemented in Java.1
Find Prime Factors()A function to find the prime factors of a number.2
calculateProductNumbersRange()A function in Java that calculates the product of numbers in a given range.2
()
Reverse String in Java()A function that reverses a string in Java.2
calculateVolumeCylinder()A function to calculate the volume of a cylinder2
calculateVolumeOfPyramid()This function calculates the volume of a pyramid.2