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
Project Description: Digital invy - inventory management Main Features User friendly windows based software Multi Branch Multi company facility Multi user Integra

What is Data Independence? Data independence means that "the application is independent of the storage structure and access method of data". In other words, the ability to cha

What is CMMI? This is a collection of instructions an organization can follow with the purpose to gain the better control over its software development process. According to

I want to develop SMS application with auto reply based on the content of the message using gsm modem. eg.Student results checking using cell phone via sms. How do i do this?

What are similarities between Class and structure? The similarities between structures and classes are as follows:- 1) Both can have constructors, properties, methods, field

Want C# Single User Login per session Project Description: I need to save simulatenious logins for one account such as one user has a spottily premium account and someone tri

What is the meaning of object pooling? Object pooling is a method of storing a pool (group) of objects in memory that can be reused later as needed. Whenever, a new object is n

I need Export Data using JSON Project Description: We could like to share our data with other websites via JSON. We are presently using Entity Framework with MySQL. We req

What is Object Oriented Programming? This is a problem solving process to develop software systems. This is a technique to think real world in terms of objects. The Object maps

What is Dynamic Language Runtime (DLR)? DLR is a runtime environment that permits you to integrate dynamic languages with the Common Language Runtime (CLR) by adding a set of s