Untitled
Anonymous
plain_text
12/17/2022 7:07 AM
408 B
27
Indexable
#include <iostream>
using namespace std;
void area(){
double ar, b, h;
cout <<"Enter base of a triangle: ";
cin>>b;
cout<<"\n";
cout<<"enter height of a triangle :";
cin>>h;
cout<<"\n";
ar = 1/2*b*h;
cout<<"AREA OF A TRIANGLE:"<<ar<<endl;
}
int main() {
area();
return 0;
}Editor is loading...