double pi = 3.14;
int r = 5;
double mianji, perimeter;
mianji = pi * r * r;
perimeter = 2 * pi * r;
Console.WriteLine("半径为5的圆,它的周长为{0},面积为{1}", perimeter, mianji);
Console.ReadKey();
5double pi = 3.14;
int r = 5;
double mianji, perimeter;
mianji = pi * r * r;
perimeter = 2 * pi * r;
Console.WriteLine("半径为5的圆,它的周长为{0},面积为{1}", perimeter, mianji);
Console.ReadKey();
5本文标题:5
本文链接:https://www.haomeiwen.com/subject/hesotqtx.html
网友评论