#include
<iostream>
using
namespace std;
int main ()
{
//area=a; base mayor=B; base menor=b; altura=h.
// hallar el area del trapecio
float a;
float B;
float b;
float h;
float area;
cout<<
"LOA CATAÑO RUSELL" << endl;
cout<< "introdusca la base mayor" <<
endl;
cin>> B;
cout<< "introdusca la base menor" <<
endl;
cin>> b;
cout<< "introdusca la altura" << endl;
cin>> h;
cout<< "el area del tapecio es" <<
endl;
a =
h*(B+b)/2;
cout<<
"area"<<"="
<<h<<"*"<<"("<<B<<"+"<<b<<")"<<"/"<<2<<
"=" <<a<< endl;
system ("pause");
return 0;
}
No hay comentarios:
Publicar un comentario