#include <iostream>
using namespace std;

class zylinder
{
public:
	double h, R, r, V, M, O;
	double pi = 3.14;

	void volumen()
	{
		V = pi*R*R*h - pi*r*r*h;
		cout << "volumen betraegt: " << V << endl;
	}
	void mantelfläche()
	{
		M = 2 * pi*(R + r)*h;
		cout << "mantelflaeche betraegt: " << M << endl;
	}
	void oberfläche()
	{
		O = 2 * pi*(R + r)*(R - r + h);
		cout << "oberflaeche betraegt: " << O << endl;
	}
	zylinder(void);
};
int main()
{
	double h, R, r;
	cout << "hoehe eingeben: ";
	cin >> h;
	cout << endl;
	cout << "aussenradius eingeben: ";
	cin >> R;
	cout << endl;
	cout << "innenradius eingeben: ";
	cin >> r;
	cout << endl;
	double b = R - r; // wanddicke berechnen
	cout << "wanddicke betraegt: " << b << endl;
	cout << endl;
	zylinder myzylinder;
	myzylinder.volumen();
	zylinder myzylinder2;
	myzylinder2.mantelfläche();
	zylinder myzylinder3;
	myzylinder3.oberfläche();
	



	system("pause");
}