please help me


#include <iostream>
#include <cmath>
using namespace std;
int main(void)
{

double TotalArea;
double AreaSquare;
double Areatriangle;
double Areacircle;
double Arearectangle;
double side;
double radius;
double length;
double breadth;
double base;
double height;
double pname;

int N;
cout << "The landscaping company"<<endl;
cout << "Enter the plot name"<<endl;
cin >>pname;
cout << "Choose an option for plot type" << endl;
cout << "1. Circular Plot" <<endl;
cout << "2. Rectangular Plot" <<endl;
cout << "3. Square Plot" <<endl;
cout << "4. Triangular Plot" <<endl;
cout << "To exit the program press 0 " <<endl;
cin>>N;
if (N==1)
{
cout << "Enter the dimensions of Circular plot"<< endl;
cout << "Please enter the radius of circular plot"<< endl;
cin >> radius;
Areacircle = 3.141*radius* radius;
cout << "The area of circular plot is :"<<Areacircle<< endl;
}
else
cin>>N;
if (N==2)
{
cout << "Enter the dimensions of Rectangular plot"<< endl;
cout << "Please enter the length of rectangular plot"<< endl;
cin >>length;
cout << "Please enter the breadth of rectangular plot"<< endl;
cin >> breadth;
Arearectangle = length*breadth;
cout << "The area of Rectangular plot is :"<< Arearectangle << endl;
}
else
cin>>N;
if (N==3)
{
cout << "Enter the dimensions of Square plot"<< endl;
cout << "Please enter the side of Square plot"<< endl;
cin >> side;
AreaSquare= side * side;
cout << "The area of square plot is :"<< AreaSquare << endl;
}
else
cin>>N;
if (N==4)
{
cout << "Enter the dimensions of Triangular plot"<< endl;
cout << "Please enter the Base of triangular plot"<< endl;
cin >>base;
cout << "Please enter the base of triangular plot"<< endl;
cin >> height;
Areatriangle = 1/2*base*height;
cout << "The area of Triangular plot is :"<< Areatriangle << endl;
}
else
cin>>N;
if(N=4)
{
TotalArea= Areacircle+Arearectangle+AreaSquare+Areatriangle;
cout << "The total area of The Plot" << pname << TotalArea << endl;
}
else
return (0);
}
}


you kept an "}" extra in the end
1) if you are using dev c++ use {#include<conio.h> and getch()}
2)in the program
you mentioned "Enter the name of the plot"
but the allocated datatype for it (pname) is double
therefore in output you must give a *number* for plot name.
Topic archived. No new replies allowed.