Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  perimeter of rectangle
Language: C/C++
Code:
#include <stdio.h>
#include <conio.h>
void.main()
{int l,b,area,per;
clrscr();
cout<< "program for finding area and perimeter of a rectangle";
cout<<"enter length and breadth of a rectangle";
cin>>l>>b;
area=l*b;
per=2*(l+b);
cout<< "area of a given rectangle is=" <<area;
cout<< "in perimeter of given rectangle is=" <<per;
getch();}
          
          
          
          
          
          
Comments: