The Knights of the Round Table

// The Knights of the Round Table.cpp : Defines the entry point for the console application. // #include "stdafx.h" using namespace std; int _tmain(int argc, _TCHAR* argv[]) { double a, b,c; while(cin>>a>>b>>c) { if(a==EOF)break; double A=0; double sinA=0; double r=0; double tmp=(a*a-b*b-c*c)/(-2*b*c); A=acos(tmp); sinA=sin(A); r=(b*c*sinA)/(a+b+c); cout<<"The radius of the round table is: "<<r<<"/n"; } system("pause"); return 0; }  

你可能感兴趣的:(The Knights of the Round Table)