111,129
社区成员
发帖
与我相关
我的任务
分享C = (int)(C * 100)/100.0F;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Xml;
using System.Collections;
namespace ConsoleApplication1
{
class Program
{
public Program()
{
const double PI=3.1415;
//假设半径为3
double c = 2 * PI * 3;
Console.WriteLine(Math.Round(c, 2));
}
static void Main(string[] args)
{
Program p1 = new Program();
Console.ReadLine();
}
}
}