Wednesday, 27 August 2014

Area of Rectangle solution in c plusplus

Leave a Comment
//Area of Rectangle length × width
#include<iostream>
#include<conio.h>
#include<math.h>
using namespace std;
int main()
{
double pi=3.1415926535,length,width,Ans;
cout<<"Enter Length = ";
cin>>length;
cout<<"Enter Width  = ";
cin>>width;
Ans=length*width;
cout<<"Area of Rectangle = "<<Ans;
getch();
}
If You Enjoyed This, Take 5 Seconds To Share It