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
Medical related application in .NET (document, Videos editing must) Project Description: I am seeking a .NET Web application which can do the subsequent: 1. Taking patient

What is the difference between Class and structure's? The main differences between them are as follows:- 1) The Structure is value types while classes are referen

As you have probably realized by now, Web pages are much more useful when they are dynamic. In Internet terminology, the word dynamic means several things. Primarily, it refers to

Develop PC Cleaner Software Project Description: We are seeking experienced developer who can develop Registry Cleaner / PC Cleaner software for us. Software should be like c

I need Job Posting Software for Schools Project Description: I want to create a software program that will automatically post a job to multiple schools. Let me know if you

Problem: (a) Define the term ViewState as used in the ASP.NET framework. (b) What is a StateBag class? Give a simple example to support your answer. (c) (i) Distingui

VB.net Rewrite and Redirect Rules using CodeBehind Project Description: Need VB.net programmer to make some (hopefully) minor code edits to resolve some site issues. I will p

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 is timer control

What is the use of DISPOSE method? This Dispose method belongs to the IDisposable interface. It is bad  to override the finalize method for writing the cleaning of the unmanage