Monday, 25 August 2014

Perimeter of Trapezoid solution in c plusplus

Leave a Comment

//Perimeter of Trapezoid  height × (base1 + base2) / 2
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
double Trapezoid,base1,base2,height;

cout<<"Enter Base 1 = ";
cin>>base1;
cout<<"Enter Base 2 = ";
cin>>base2;
cout<<"Enter Height = ";
cin>>height;
Trapezoid=height*(base1+base2)/2;
cout<<"Perimeter of Trapezoid= "<<Trapezoid;
getch();
}
If You Enjoyed This, Take 5 Seconds To Share It