Find out circumference and area of a circle – c# program, DOT NET Programming

Find out circumference and area of a circle - C# Program

Need Help in Assignment.

Posted Date: 2/11/2013 6:54:37 AM | Location : United States





Try this:

using System;  

class circle

{

  public static void Main()

 {

   float radius = 12.5F;

   float circumfrence, area;

   float pi = 3.1487F;  

  circumfrence = 2 * pi * radius;

  area = pi * radius * radius;  

  Console.WriteLine("The Radius of the circle = " + radius);

  Console.WriteLine(""); //Blank Line

  Console.WriteLine("Its Circumfrence = " + circumfrence);

  Console.WriteLine("Its Area = " + area);

  Console.ReadLine();  

 }

}

Posted by Stephen | Posted Date: 2/11/2013 6:56:00 AM


Related Discussions:- Find out circumference and area of a circle – c# program, Assignment Help, Ask Question on Find out circumference and area of a circle – c# program, Get Answer, Expert's Help, Find out circumference and area of a circle – c# program Discussions

Write discussion on Find out circumference and area of a circle – c# program
Your posts are moderated
Related Questions
Program of addition of byte type variables - C# Program Program of addition of byte type variables, i need program code for performing addition of byte type variables. Can any

Php project for Narivramanarao For email Project Description: This is a project for Narivramanarao for emails and for php.rar please bid on the project and let's get started

Perform Arithmetic Operations - c# Program Hello, i didn't find the correct way of using arithmetic operations in c#. I am beginner for this language. Please suggest me some e

I am seeking someone who can design customized software for me, preferably in .NET. I have a sql server backend which i would like to use so you only have to work with the front en

I need C# API for bitfinex Project Description: Hi, I need a developer to build a library in C# that connects to the bitfinex API. The library must implement all the authenti

Project Description: I am having a table available in excel format and features the subsequent: - It has about 170000 rows - Some text is longer than 255 in length. - S

Simple FB Integration in MS-SQL and ASP.NET I am seeking urgent project to be done, please I am interested in someone who will present demo for retrieving personal informatio

What does WSDL stand for?  WSDL stands for Web Services Description Language.  It is an XML representation of the web service interface. There are two parts of the operation

What is the difference between VB6 and VB.Net? VB6 1.       It is Object-based Language 2.       It Does not support Threading 3.       Not powerful Exception handli

What is a delegate? The Delegate is the class that can hold a reference to a method or a function. The Delegate class has a signature and it can only reference to those methods