Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Program: triangulo.cc
- // Author: Yoan Pinzon
- // Date: Agosto 30, 2006
- #include <iostream>
- using namespace std;
- int main()
- {
- float base, altura, area;
- cout << "Area del triangulo" << endl;
- cout << "==================" << endl;
- cout << "Entre el valor de la base = "; cin >> base;
- cout << "Entre el valor de la altura = "; cin >> altura;
- area = ( base * altura ) / 2;
- cout << endl;
- cout << "Area = " << area << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement