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);

  Console.ReadLine();

 }

}

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
Human Aimbot and CSGO Wallhack Need a CSGO hack which can Aimbot and wallhack realistically. Must be VAC Proof, and ESL proof, as well as Overwatch proof (in teh case of thei

Passport Authentication This is a centralized authentication service given by Microsoft that offers a single logon facility and membership services for participating sites. ASP

Ask queyuyuystion #Minimum 100 words accepted#

What are abstract classes? What are the distinct characteristics of an abstract class? An abstract class is a class that cannot be instantiated and is always used as a base cla

WDS and MDT Deployment Server Training Project Description: I'm seeking someone who can Teach/Train me with MDT and WDS server. This Can be online teaching courses. I will

Project Description: We need to construct services in C# or VB.NET that can manipulate with a Targin TIP Protocol Server (protocol for financial information exchange), receive d

I need Professional TELERIK WinForm Project Description: Professional TELERIK Professional assistance in  TELERIK WinForm via remote control. Development WinForm in C #

What is a delegate? A delegate is similar to a class that is used for storing the reference to a method and invoking that method at runtime, as needed. A delegate can hold the

what is timer control

Checking for validity of an expression - C# Program Hello can you please provide me some examples regarding to the Checking for validity of an   expression in C#.