#include <iostream.h> #include <conio.h> int main() { float base, altitude; cout << "Base: "; cin >> base; cout << "Altitude: "; cin >> altitude; cout << endl << "Area:" << 0.5*base*altitude; getch(); return 0; }
#include <iostream.h> #include <conio.h> int main() { float base, altitude; cout << "Base: "; cin >> base; cout << "Altitude: "; cin >> altitude; cout << endl << "Area:" << 0.5*base*altitude; getch(); return 0; }