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
What is a cloud? A cloud is a combination of hardware, storage, networks, services, and interfaces that helps in delivering computing as a service. It has generally three users

What is DBMS? It is a collection of programs that enables user to make and maintain a database. In other words it is general-purpose software that gives the users with the proc

Printing and adding Fibonacci series - C# Program Hello guys i need your advice. How can i print and add Fibonacci series in my project. Please recommend some examples.

Write a Program of Changing String Order - C# Language  using System;   class Prog3_2  {       public static void Main(String [] args)    {     Console.Write(ar

Web Based Inventory Management System Project Description: I need a build in software which has the subsequent features, if anybody has ready to use web based application, pl

1  Assignment Description   This is an individual assignment. Students are referred to the Faculty's policy on plagiarism.  In this assignment you will build a prototype of a si

i would like to learnd API''s how they works for advance programming in vb.net

What are standard query operators in LINQ? The standard query operators in LINQ are the extension process that forms the LINQ pattern. These operators form an API that enables

Reading strings from the keyboard   using System; class Prog3_1 {       public static void Main()   {    Console.Write ("Enter Your First Name : "); // Displaying to writ

how to connect login page with my database and check the values with the database.