Hi friends, I am going to write a simple program to calculate the average for the set of values. It is easy to calculate the average of numbers, to find the average of numbers just add up all the numbers, then divide by how many numbers there are. In other words, it is the sum divided by the count.

## C# Program to calculate the average for the set of values:

```using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Text;
using System.Runtime.Serialization.Json;
namespace CheckPrimeUsingRecursion
{
class Program
{

static void Main(string[] args)
{

int iNumberofItem, iCount, iSum = 0, iAverage = 0;
Console.WriteLine("Enter the Number of Items in the Array ");
int[] arrItem = new int[iNumberofItem];
Console.WriteLine("Enter the Array Elements ");
for (iCount = 0; iCount < iNumberofItem; iCount++)
{
}
for (iCount = 0; iCount < iNumberofItem; iCount++)
{
iSum += arrItem[iCount];
}
iAverage = iSum / iNumberofItem;
Console.WriteLine("Average is {0}", iAverage);

}

}
}```

## Output:

```Enter the Number of Items in the Array
4
Enter the Array Elements
6
4
6
7
Average is 5```

## View More:

### Conclusion:

I hope you would love this post. I would appreciate your suggestions and feedback. Please don’t hesitate to comment for any technical help.

### Explore post tags

• Howdy would you mind sharing which blog platform you’re using? I’m going to start my own blog in the near future but I’m having a difficult time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design and style seems different then most blogs and I’m looking for something completely unique. P.S My apologies for getting off-topic but I had to ask!|

• Heya! I just wanted to ask if you ever have any problems with hackers? My last blog (wordpress) was hacked and I ended up losing several weeks of hard work due to no backup. Do you have any methods to prevent hackers?|

• Wow, this paragraph is nice, my younger sister is analyzing these things, so I am going to inform her.|

• Appreciate the recommendation. Let me try it out.|

• Nice post. I learn something new and challenging on blogs I stumbleupon every day. It will always be helpful to read jenis permainan judi togel articles from other authors and use something from other web sites.

• Spot on with this write-up, I seriously feel this amazing site needs far more attention. varian taruhan togel I’ll probably be back again to read through more, thanks for the information!

• Way cool! Some extremely valid points! I appreciate you writing this article and the rest of the website is extremely good.

• Major thanks for the blog article.Really thank you! Will read on…

• Very good blog article.Much thanks again. Fantastic.

• I truly appreciate this blog post.Really looking forward to read more. Awesome.

• Say, you got a nice article.Thanks Again. Keep writing.

• I know this if off topic but I’m looking into starting my own weblog and was wondering what all is needed to get setup? I’m assuming having a blog like yours would cost a pretty penny? I’m not very web smart so I’m not 100 certain. Any recommendations or advice would be greatly appreciated. Appreciate it|

• Very good article.Thanks Again. Fantastic.

• Major thankies for the blog article.Really looking forward to read more. Cool.

• Hey, thanks for the blog article.Thanks Again. Awesome.

• I value the article post. Really Cool.

• Really appreciate you sharing this post.Much thanks again. Fantastic.

• Very informative blog post. Really Cool.

• A round of applause for your post. Awesome.

• Say, you got a nice blog article. Much obliged.

• Muchos Gracias for your article post.Thanks Again. Awesome.

• Wow, great blog article. Cool.

• Appreciate you sharing, great blog.Really thank you! Cool.

• Thanks a lot for the blog article.Really thank you! Cool.

• I appreciate you sharing this blog article.Really thank you! Will read on…

• I have seen that now, more and more people will be attracted to cams and the subject of images. However, really being a photographer, it’s important to first shell out so much of your time deciding which model of photographic camera to buy in addition to moving store to store just so you may buy the lowest priced camera of the trademark you have decided to settle on. But it won’t end at this time there. You also have to contemplate whether you can purchase a digital digital camera extended warranty. Thanks alot : ) for the good guidelines I received from your blog.

• Really appreciate you sharing this post.Much thanks again. Fantastic.

• Im thankful for the blog. Much obliged.

• I’m amazed, I must say. Seldom do I encounter a blog that’s both educative and interesting, and without a doubt, you’ve hit the nail on the head. The issue is an issue that too few men and women are speaking intelligently about. Now i’m very happy I stumbled across this in my hunt for something relating to this.|

• Great weblog here! Additionally your web site quite a bit up very fast! What web host are you the usage of? Can I am getting your associate hyperlink on your host? I desire my web site loaded up as fast as yours lol|

• May I simply say what a relief to uncover somebody who genuinely knows keuntungan bermain judi casino This site is one thing that is required on the internet, someone with a bit of originality!

• I appreciate you sharing this post.Much thanks again. Cool.

• Major thankies for the article.Really looking forward to read more. Really Great.

• Thanks-a-mundo for the blog article.Really thank you! Really Cool.

• This is one awesome article.Really thank you! Awesome.

• Im grateful for the blog post.Thanks Again. Awesome.

• Fantastic blog post.Really thank you! Much obliged.

• wow, awesome article.Really thank you! Really Cool.

• Great, thanks for sharing this blog.Much thanks again. Much obliged.

• Very neat article.

• I really like and appreciate your article.Really thank you! Cool.

• I loved your blog post.Thanks Again. Keep writing.

• I cannot thank you enough for the blog.Thanks Again. Fantastic.

• A round of applause for your article post. Keep writing.

• I value the blog.Really looking forward to read more. Want more.

• My partner and I stumbled over here from a different web address and thought I might check things out. I like what I see so i am just following you. Look forward to looking over your web page for a second time.|

• Awesome article post. Keep writing.

• Great, thanks for sharing this blog article.Really looking forward to read more. Really Cool.

• I really liked your blog.Thanks Again. Fantastic.

• This is one awesome post.Really looking forward to read more. Want more.

• Wow, great blog article.Really looking forward to read more. Much obliged.

• Really appreciate you sharing this blog.Really thank you! Awesome.

• Thank you for your post.Thanks Again. Want more.

• I loved your article. Really Great.

• I cannot thank you enough for the blog article.Really thank you! Much obliged.

• Looking forward to reading more. Great blog article.Really looking forward to read more. Want more.

• Very informative post.Really thank you! Want more.

• I think this is a real great blog.Really thank you! Really Cool.

• Major thankies for the post.Much thanks again.

• Hey, thanks for the blog.Really looking forward to read more. Really Cool.

• I really enjoy the post.Really looking forward to read more.

• Major thankies for the blog post.Really thank you! Awesome.

• Very neat article post.Really looking forward to read more. Want more.

• Hey, thanks for the blog. Really Great.

• Awesome blog post.Really looking forward to read more. Really Great.

• I cannot thank you enough for the blog.Thanks Again. Great.

• Major thankies for the blog post.Much thanks again. Keep writing.

• Thank you for your article post.Really looking forward to read more.

• Asking questions are in fact good thing if you are not understanding something totally, but this piece of writing provides good understanding yet.|

• Thanks again for the article.Much thanks again. Want more.

• I value the blog.Much thanks again. Cool.