Tutorialspoint.dev
Welcome To Tutorialspoint.dev
Officially launched 18th May 2019
PHP Web Technologies PHP-basics

PHP Factorial of a number

We already know how to get the factorial of a number in other languages. Let’s see how this is done in PHP using both recursive and non-recursive ways. Example...
PHP Web Technologies PHP-gmp

PHP gmp_fact() for large factorials

The gmp_fact() is a built-in function in PHP which is used to calculate the factorial of a GMP number (GNU Multiple Precision : For large numbers). Syntax: gmp_fact (...
DBMS School Programming SQL

Factorial of a number in PL/SQL

Prerequisite – PL/SQL introduction In PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare...
Computer Organization & Architecture microprocessor system-programming

8085 program to find the factorial of a number

Problem – Write an assembly language program for calculating the factorial of a number using 8085 microprocessor. Example – Input : 04H Output : 18H as...
Computer Organization & Architecture microprocessor system-programming

8086 program to find the factorial of a number

Prerequisite – 8085 program to find the factorial of a number Problem – Write an assembly language program for calculating the factorial of a number usi...
Divide and Conquer Binary Search factorial

Numbers whose factorials end with n zeros

Given an integer n, we need to find the number of positive integers whose factorial ends with n zeros. Examples: Input : n = 1 Output : 5 6 7 8 9 Explanation: Here, 5...
Mathematical factorial Fibonacci

Factorial of each element in Fibonacci series

Given the upper limit limit, print factorials of all Fibonacci Numbers smaller than limit. Examples : Input : limit = 20 Output : 1 1 1 2 6 120 40320 6227020800 Expla...
Mathematical factorial MakeMyTrip

Count trailing zeroes in factorial of a number

Given an integer n, write a function that returns count of trailing zeroes in n!. Examples : Input: n = 5 Output: 1 Factorial of 5 is 120 which has one trailing 0. ...
Mathematical divisors factorial

Count Divisors of Factorial

Given a number n, count total number of divisors of n!. Examples: Input : n = 4 Output: 24 4! is 24. Divisors of 24 are 1, 2, 3, 4, 6, 8, 12 and 24. Input : n = 5 Ou...
Mathematical divisors factorial

Sum of divisors of factorial of a number

Given a number n, we need to calculate the sum of divisors of factorial of the number. Examples: Input : 4 Output : 60 Factorial of 4 is 24. Divisors of 24 are 1 2 3 ...

Subscribe to Our Newsletter