Area del triangulo

//PROGRAMA: Area del triangulo #include <cstdlib> #include <iostream> using namespace std; float h;//altura float b;//base float total;//resultado int main(int argc, char *argv[]) { cout<<"Ingrese el valor de La base: "<<endl; cin>>b; cout<<"Ingrese el valor de La altura: "<<endl; cin>>h; total=(b*h)/2; cout<<"\n\nEl area de el triangulo es: "<<total<<".\n\n"<<endl; cout<<"\n\n................gracias por usar el programa................"<<endl; cout<<"\n _______________"<<endl; cout<<" |Autor: CamiloCV|"<<endl; cout<<"\ |_______________|\n"<<endl; system("PAUSE"); return EXIT_SUCCESS; }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.