Compute average of 3 numbers - c# program, DOT NET Programming

Compute Average of 3 numbers - C# Program

I didn't know the exact code for computing average of integer number. Can anybody suggest me the correct way for find out the average?

Posted Date: 2/11/2013 6:46:23 AM | Location : United States

Some new learner of C# faces this type of problem. Don''t worry use this code once.

Program - Compute average of 3 numbers

using System;  

class average


  public static void Main()


   float a = 25;

   float b = 75;

   float c = 100;

   float avg = (a+b+c)/3;

  Console.WriteLine("The average of 25, 75 & 100 = " + avg);




Posted by Stephen | Posted Date: 2/11/2013 6:48:26 AM

The above code help me really. you select the right way for the above problem. Thank you so much.

Posted by | Posted Date: 2/11/2013 6:50:40 AM

Related Discussions:- Compute average of 3 numbers - c# program, Assignment Help, Ask Question on Compute average of 3 numbers - c# program, Get Answer, Expert's Help, Compute average of 3 numbers - c# program Discussions

Write discussion on Compute average of 3 numbers - c# program
Your posts are moderated
Related Questions
upload files using file upload control to google drive

Project Description: Step 1: Buy 1 share at existing market price (ex: buy 1 at 100.00) If 4 points profit then close position if not go to step 2 Step 2: if 2 point


Project Description: i want to prepare a pollution checking software.. i have a demo of it.. Exactly someone to be created ..some changes to be included.. sms gateway t

Question: (a) Explain the Postback process as use with Web Forms. (b) Write extract codes to demonstrate how to store and retrieve values in: (i) a Session Object (ii)

Explain why your project needed XML. Remember XML was meant to exchange data between the two entities as you can define your user friendly tags with ease. In the real world sce

What are major difference between classic ADO and ADO.NET ? Some major differences between the classic ADO & ADO.NET are as follows: 1) As in the classic ADO we had server a

Project Description: Digital invy - inventory management Main Features User friendly windows based software Multi Branch Multi company facility Multi user Integra

I need a program that mimics the similar functionality as the link below. Program must have a unique user interface. Must add source code, installer, and of course a nice user i

What is BCP utility in SQL SERVER? The Bulk Copy Program (BCP) is a command line utility by which you can import & export large amounts of data in and out of the SQL SERVER dat