Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
317 B
3
Indexable
Never
#include <iostream>
using namespace std;

void area(){
  double ar, b, h;
  cout <<"Enter base of a parallelogram: ";
  cin>>b;
  cout<<"\n";

  cout<<"enter height of a parallelogram :";
  cin>>h;
    cout<<"\n";
  ar = b*h;
  cout<<"AREA OF A parallelogram:"<<ar<<endl;

 
}
int main() {

  area();
  
  return 0;
}