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
Consuming a web service with SOAP on c# .NET Project Description: I need to consume a web service with SOAP. I have xml file and some description. I need it to be done

Ask queyuyuystion #Minimum 100 words accepted#

Explain Forms authentication in detail. In the old ASP if you were said to create a login page and do authentication you have to do lot of custom coding. But now in ASP.NET tha

Describe the roles of CLR in .NET Framework. CLR gives an environment to execute .NET applications on target machines. CLR is also a common runtime environment for all .NET cod

How to use a checkbox in a datagrid? The steps to be done are as follows:- 1)    In the ASPX page you have to add Itemtemplate tag in datagrid. 2) I

Question: (a) One problem encountered when designing web applications is that HTTP is a "stateless" protocol. Explain two general approaches to solve the statelessness problem

What is code access security (CAS)? Code access security (CAS) is part of the .NET security model that stops unauthorized access of resources and operations, and restricts the

Project Description: I have a site that's previously fully developed, and need to fix some small problems (Text editor posting error, and a Server error caused by some Nhibernat

ASP Developer- We are needed to hire an ASP developer for some urgent work. He needs to add a new page to an already prepared site; the page is already completed in HTML. He jus

What is the main difference b/w MSML and .NET Framework XML classes? The MSXML supports XML DOM and SAX parsers while the .NET framework XML classes support XML DOM and XML rea