1.上代码
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Suke.day03
{
internal class Class1
{
static void Main(string[] args)
{
int a, b, c;
double area, p;
a = int.Parse(Console.ReadLine());
b = int.Parse(Console.ReadLine());
c = int.Parse(Console.ReadLine());
p = (a + b + c) / 2.0;
area = Math.Sqrt((p*(p-a)*(p-b)*(p-c)));
Console.WriteLine("面积={0}",area);
Console.ReadKey();
}
}
}