//Programm Pyramide 05.10.10
//Wurzel= sqrt(_______)
#include <conio.h>
#include <iostream.h>
#include <math.h>
void main()
{
float fSeite, fHoehe, fVolumen, fOberflaeche;
gotoxy(5,4);cout<<"Quadratische Pyramide";
gotoxy(5,5);cout<<"=====================";
gotoxy(5,7);cout<<"Geben Sie die Seite a ein: ";
cin>>fSeite;
gotoxy(5,8 );cout<<"Geben Sie die Hoehe ein: ";
cin>>fHoehe;
fVolumen=fSeite*fSeite*fHoehe/3;
fOberflaeche=fSeite*fSeite+2*fSeite*sqrt(fHoehe*fHoehe+fSeite*fSeite/4);
gotoxy(5,10);cout<<"Die Oberflaeche betraegt: "<<fOberflaeche;
gotoxy(5,11);cout<<"Das Volumen betraegt: "<<fVolumen;
getchar();
}