# Php Programming Code Examples

## Php > Algorithms Code Examples

### Exactly calculate date of eastersunday

Program to Calculate Average of Numbers -
Takes n number of element from user (where, n is specified by user), stores data in an array and calculates the average of those numbers, program calculates the average if the number

Find Sum of Opposite Diagonal Elements -
C program to read elements in a matrix and find the sum of minor diagonal elements. C program to calculate sum of minor diagonal elements. Input elements in matrix from user

Sort Array in Ascending Descending Order -
Program code to read elements in an array and sort elements of the array in ascending order. Read unsorted integer values in array and sort them in ascending order. Numerous

Program code Find Quotient & Remainder -
User is asked to enter the Dividend & Divisor and the program then finds the quotient and remainder based on the input values and the modulus operator "%" returns the remainder

Addition Operation use Bitwise Operators -
C++ Program perform addition using bitwise operators. Using "AND" and "XOR" operators addition can be done, where carry is given by "AND" between two operands and result can

Program Find the Average using Function -
C code to find the average using function. We have created user defined function average() for the calculation of average. The numbers entered by user are passed to this c function

C Finds Sum of Even Numbers from 1 to N -
C Program to input upper limit to find sum of even number. Store it in some variable say N. Initialize another variable to store sum with 0 say sum = 0. To find sum of even numbers we

Convert from degree Celsius to Fahrenheit -
Input temperature in Centigrade and convert to Fahrenheit. How to convert temperature from degree centigrade to degree Fahrenheit in C programming. The logic of temperature