First off, indent your code: with a whole bunch flat to the left it's a lot harder to work out what is going on.
Secondly, make sure your code compiles before you post it here:
width,length;
<<"pleaseenterthelengthandofrctangle"<<endl;
cin="">> length>> width;
The first line won't compile because the type specifiers - probably
int
are missing, and the middle line won't compile, probably because you missed the "cout" at the front:
int width,length;
cout <<"pleaseenterthelengthandofrctangle"<<endl;
cin>> length>> width;
Get it compiling, and you stand a better chance of working code ...