Skip to main content
  • Create an array of numbers and take input from user and add into array
  • Keep adding numbers to array untill zero is added
  • Filter for numbers divisible by 10
  • Create an array of square of the numbers
  • Use reduce to calculate factorial of a given number from an array of first n natural numbers (n being te number whose factorial needs to be calculated)