0% found this document useful (0 votes)
25 views2 pages

PROGRAME6

Uploaded by

harry221992
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

PROGRAME6

Uploaded by

harry221992
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

PROGRAME-6

TASK-WAP to find area and perimeter of rectangle

PURPOSE- By implementing this program we are capable to find out area and
perimeter of rectangle of any dimensions entered by user.

#include<iostream.h>

#include<conio.h>

int main()

int length,breadth,area,perimeter;

cout<<"enter length:";

cin>>length;

cout<<"enter breadth:";

cin>>breadth;

area=length*breadth;

cout<<"area is:"<<area<<endl;

perimeter= (2*length+2*breadth);

cout<<"perimeter is:"<<perimeter;

getch();

}
OUTPUT-

You might also like