Chinaunix首页 | 论坛 | 博客
  • 博客访问: 22318
  • 博文数量: 10
  • 博客积分: 251
  • 博客等级: 二等列兵
  • 技术积分: 125
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-10 16:30
文章分类
文章存档

2011年(10)

我的朋友
最近访客

分类: 嵌入式

2011-07-07 16:00:46

 

  1. /*
  2.  * Created by SharpDevelop.
  3.  * User: Soledad
  4.  * Date: 2011/7/6
  5.  * Time: 11:30
  6.  *
  7.  * To change this template use Tools | Options | Coding | Edit Standard Headers.
  8.  */
  9. using System;

  10. namespace Welcome
  11. {
  12.     class Program
  13.     {
  14.         public static void Main(string[] args)
  15.         {
  16.              
  17.             double r = Convert.ToDouble(Console.Read());
  18.             
  19.             Console.WriteLine("The diameter is {0}.",2*r);
  20.             Console.WriteLine("The circumference is {0}.",2*Math.PI*r);
  21.             Console.WriteLine("The area is {0}.",Math.PI*r*r);
  22.             
  23.             Console.Write("Press any key to continue . . . ");
  24.             Console.ReadKey(true);
  25.         }
  26.     }
  27. }
阅读(1011) | 评论(0) | 转发(0) |
0

上一篇:最近那点事

下一篇:LINQWithSimpleTypeArray

给主人留下些什么吧!~~