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: I am trying to connect my marketplace website with Stripe/connect. I have 5 or 6 scripts already written that just need to be adjusted so they will work: 2

What is object-oriented programming (OOP)? OOP is a technique to develop logical modules, like classes that contain properties, methods, fields, and events. An object is formed

how to create log in form using vb 2010

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

I need Simple upgrades for ASP.NET site I have an existing web solution, we need a new page for creating additional features. The current website is done in C#.NET and ASP.NET.

Show the code for the file dependency in cache? Partial Class Default_aspx Public Sub displayAnnouncement() Dim announcement As String If Cache("announcement") Is Noth

A CRM based on .net and Oracle as backend with import data, Transaction Reporting and management Capabilities Project Description: 1. Introduction ADA recovery Branch gets

What's the difference between localization and globalization? Globalization: The Globalization is a process of developing a program core whose features and code design are no

Project Description: I require a flight scheduling website, including billing and basic aircraft management; this will be used by a local piloting school There is no requirin