1
#include<iostream.h> #include<conio.h> //#include<math.h> void main() {int largo, ancho,h ,a, b, c, t; cout<<"ingrese el largo:";cin>>largo; cout<<"ingrese el ancho:";cin>>ancho; a=largo*ancho; cout<<"el area a es:"<<a<<endl; cout<<"ingrese la altura:";cin>>h; b=ancho*h; cout<<"el area b es:"<<b<<endl; c=largo*h; cout<<"el area c es:"<<c<<endl; t=2*a+2*b+2*c; cout<<"el area total es:"<<t; getch(); }

areatotalparalelepido.docx

Embed Size (px)

Citation preview

#include

#include

//#include

void main()

{int largo, ancho,h ,a, b, c, t;

coutlargo;

coutancho;

a=largo*ancho;

cout