计算半径为5的圆的面积和周长并打印出来
程序
int r = 5;
double pi = 3.14;
double s = pi * r * r;
double c = 2 * pi * r;
Console.WriteLine("圆的面积:{0},圆的周长:{1}", s, c);
Console.ReadKey();
```![圆.jpg](https://img.haomeiwen.com/i14498195/26e178718a66360a.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
网友评论