//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();
}
#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();
}
0 Questions:
Post a Comment