#include <iostream>
#include <cstdlib>
#include <cmath>
using namespace std;
int main()
{
	float a, b, c, alpha, beta;
	
	cout<<"Berechnung RECHTWINKLIGES D R E I E C K"<<endl;
	
	//Einlesen...
	cout<<"Kathete a: ";
	cin>>a;
	cout<<"Kathete b: ";
	cin>>b;
	
	//rechnereien...
	c=sqrt((a*a)+(b*b));
	beta=atan(b/a)*360/M_PI/2;
	alpha=atan(a/b)*360/M_PI/2;
	
	//Ergebnisausgaben
	cout<<endl<<"Die Hypothenuse c ist "<<c<<"mm"<<endl;
	cout<<"Der Winkel alpha ist "<<alpha<<" Grad"<<endl;
	cout<<"Der Winkel beta ist "<<beta<<" Grad"<<endl;
}


