# Php Programming Code Examples

## Php > Site Navigation Code Examples

### Page lister

C++ Codes Solve Tower of Hanoi Problem - C++ program displays the iterative solution to the Tower of Hanoi problem. Tower Of Hanoi consists of 'three rods' and a number of disks of different sizes which can "Slide Onto" any

Print Perfect numbers between an interval - Declare function to print all Perfect Numbers in given range. First give meaningful name to the function. Say "printPerfect()" will print all perfect numbers in given range. Along with...

Counts Leading Zeros in a Binary Number - C program code input any number from user and find total number of leading zeros of the given number. How to find total leading zeros of a given number (in binary representation)

Find Palindrome Number in C++ language - We already known that if reverse of a number is equal to the same number, it is Palindrome number. Remember it: certain variables and a loop use to get the reverse of a number which

Find Reverse of a Number using Recursion - Declare recursive function to find reverse of a number. Lets give a meaningful name to our function, say reverse(). C function computes reverse of number, hence it must accept an...

C Programming Bubble sort [Linked List] - If the list is empty, create first node. Go to last node. Add node at the end. Preform a bubble sort on the linked list. The 'c' node precedes the 'a' and 'e' node pointing up...

Random Numbers Probability Distribution - Program to generate random numbers using Probability Distribution Function. Probability distribution is based on "Probability Density" function. a probability density function (pdf),

Read and write Strings Printf() and Scanf() - Compare 2 strings, 'Concatenate Strings' and copy one string to another & perform various 'string manipulation operations'. We perform such operations using 'pre-defined' functions