# Php Programming Code Examples

## Php > Graphics Code Examples

### Bar chart

C Language Print Natural Numbers 1 to N -
C program print all natural numbers from 1 to n using loop. Input upper limit to print natural number from user. Store it in a variable say N. Run a For Loop from 1 to N with 1 increment.

How to Call Overridden Functions in C++ -
As we have seen above that when we make the 'call to function' (involved in overriding), the child class function (overriding function) gets called. what if you want to call the C++

C++ Program to Implement Insertion Sort -
Insertion sort algorithm sort data by inserting them one by one into the List. This algorithm is based on sorting playing cards by picking & inserting them one by one. Here we take data

Find Sum of Natural numbers from 1 to N -
Program find the sum of all natural numbers between 1 to n. Input upper limit to find sum of natural numbers. Store it in some variable say N. Initialize another variable to store sum

Code Prints the Factorial of given Number -
C code Print the 'Factorial' of a given number. A factorial is product of all the numbers from 1 to n, where n is the 'specified number'. This C program find the product of all the number

Aho-Corasick Algorithm String Matchings -
"Aho-Corasick" string matching algorithm is a 'searching algorithm', it is a kind of dictionary matching Algorithm that locates elements of a finite set of strings (the "Dictionary") within

Converts Octal Number to Binary Number -
To convert octal number to binary number in C++, you have to ask to the user to enter the octal number to convert it to binary number to display the "equivalent value" in binary as

C++ Codes String Matching in Linear Time -
Create the Shift-Lookup-Table. Start with the second character, since the shift to the first is always 0. Search the "string" and return when the first occurrence is found. Searching string