//Programm Quader; 21.09.2010; Dennis Siegmund
#include <conio.h>
#include <iostream.h>
void main()
{
float seitea, seiteb, hoehe, volumen, oberflaeche;
gotoxy(5,3); cout<<"===============================";
gotoxy(5,4); cout<<"-> Programm Quaderberechnung <-";
gotoxy(5,5); cout<<"===============================";
gotoxy(5,7); cout<<"Seite A -> ";
cin>>seitea;
gotoxy(5,9); cout<<"Seite B -> ";
cin>>seiteb;
gotoxy(5,11); cout<<"Hoehe -> ";
cin>>hoehe;
gotoxy(5,13); cout<<"===============================";
volumen=seitea*seiteb*hoehe;
oberflaeche=2*seitea*seiteb+2*seitea*seiteb+2*seitea*seiteb;
gotoxy(5,14);cout<<"Das Volumen betraegt -> "<<volumen;
gotoxy(5,15);cout<<"Die Oberflaeche betraegt -> "<<oberflaeche;
gotoxy(5,16); cout<<"===============================";
getch();
}
Viel Spass damit