//Perimeter of Parallelogram 2 × (side1 + side2)
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
double parallelogram,side1,side2;
cout<<"Enter Side 1 = ";
cin>>side1;
cout<<"Enter Side 2 = ";
cin>>side2;
parallelogram=2*(side1 +side2);
cout<<"Perimeter of Parallelogram = "<<parallelogram;
getch();
}
0 Questions:
Post a Comment