Documente Academic
Documente Profesional
Documente Cultură
#ifdef WIN32
#else
#endif
#ifdef WIN32
#else
#endif
int main() {
int opcion;
float cat1,cat2,hip;
do {
clear();
cin>>opcion;
switch(opcion) {
case 1:
do {
cout<<"Cateto 1: "<<endl;
cin>>cat1;
cout<<"Cateto 2: "<<endl;
cin>>cat2;
system("PAUSE");
clear();
else{
system("PAUSE");
clear();
break;
case 2:
break;
default:
cout<<"Opcion incorrecta"<<endl;
system("PAUSE");
} while(opcion != 2);