- 论坛徽章:
- 0
|
- /*
- * Created by SharpDevelop.
- * User: Soledad
- * Date: 2011/7/6
- * Time: 11:30
- *
- * To change this template use Tools | Options | Coding | Edit Standard Headers.
- */
- using System;
- namespace Welcome
- {
- class Program
- {
- public static void Main(string[] args)
- {
-
- double r = Convert.ToDouble(Console.Read());
-
- Console.WriteLine("The diameter is {0}.",2*r);
- Console.WriteLine("The circumference is {0}.",2*Math.PI*r);
- Console.WriteLine("The area is {0}.",Math.PI*r*r);
-
- Console.Write("Press any key to continue . . . ");
- Console.ReadKey(true);
- }
- }
- }
|
|