PHP PROGRAM TO FIND SUM & AVERAGE OF NUMBERS IN ARRAY - STUDENTSBLOG100 PHP TUTORIAL - Anna University Multiple Choice Questions

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

5 comments:

  1. 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

    ReplyDelete
  2. Appreciating the persistence you put into your blog and detailed information you provide.
    Best rpa training Institute in chennai

    ReplyDelete
  3. I finally found great post here.I will get back here. I just added your blog to my bookmark sites. thanks.Quality posts is the crucial to invite the visitors to visit the web page, that's what this web page is providing.
    angular js training in chennai

    angular js training in tambaram

    full stack training in chennai

    full stack training in tambaram

    php training in chennai

    php training in tambaram

    photoshop training in chennai

    photoshop training in tambaram

    ReplyDelete