PHP PROGRAM TO FIND SUM & AVERAGE OF NUMBERS IN ARRAY - STUDENTSBLOG100 PHP TUTORIAL


This program is used to display or find sum or addition of numbers present in array and finding average of numbers or integers present in an array.

Programming Logic:

  • Get the sum of integers present in an array.
  • Count the number of integers present in the array.
  • Divide sum of integers with number of integers present in the array.
  • Display the result

FIND SUM & AVERAGE OF NUMBERS IN ARRAY MODEL 1:
Output:
Number of integers present in array are: 5
Sum of integers present in array is: 15
Average of array numbers is: 3

FIND SUM & AVERAGE OF NUMBERS IN ARRAY MODEL 2:
Output:
Avg of array numbers is: 3

Click Here to get -- > Php Tutorials by Studentsblog100

Previous
Next Post »

2 comments

Click here for comments
Priya Kannan
admin
3 May 2017 at 13:37 ×

Great post! I am see the programming coding and step by step execute the outputs.I am gather this coding more information. It's helpful for me my friend. Also great blog here with all of the valuable information you have.
PHP Training in Chennai

Reply
avatar
Sharon Sandy
admin
5 July 2017 at 11:14 ×

It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
Android Training in Chennai
Ios Training in Chennai

Reply
avatar