 # Php Programming Code Examples

## Php > Statistics and Counters Code Examples

### Easily Configurable Counter

Program Implements First Fit Decreasing - This is a C++ Program to implement First Fit Decreasing for one dimensional objects and M bins. This is bin packing algorithm for first fit technique. Bubble Sort descending order

Find The Perfect Number In C++ language - For example 6 is Perfect Number since divisor of 6 are 1, 2 and 3. Sum of its divisor is 1 + 2+ 3 =6 and 28 is also a 'Perfect Number' since 1+ 2 + 4 + 7 + 14= 28. Other 'Perfect Numbers': 496

Find Length of String by Defined Function - C Program to find Length of string with using user 'Defined function'. By using user-defined function write a code to find Length of String. After accepting the string from the user we're

Code Shows a Client Server in C language - Message queue program that shows a client server implementation this is the reciever program using Message Queues. Let us set up the message queue. Then the messages...

C Program code to Subtract two matrices - C language read elements in two matrices and find the difference of two matrices. Subtract two matrices in C. Elements of two matrices can only be subtracted if and only...

C Program to Open, Read & Close the File - C various file opening modes: File is opened using fopen() c function, while opening you can use any of the following mode as per the requirement. Mode "r": It is a read only mode,

Program Code for Beginners Area of Circle - C Area of Circle. Ellipse in which the two axes are of equal length. Plane curve generated by one point moving at a constant distance from a fixed point. You can compute area of circle.

Program Solve The 0-1 Knapsack Problem - C++ Program to solve 0-1 'knapsack problem'. The 'Knapsack' problem or Rucksack problem is a problem in "Combinatorial Optimization": Given a Set of items, each with a mass, value,