Back To C++ User Defined Functions Index
//program to create two functions to calculate area and perimeter of rectangle (length and breadth of rectangle are passed to functions as arguments) #include
#include
void area(int,int); void perimeter(int,int); void area(int length,int breadth) { int ar; ar=length*breadth; cout<<"area of rectangle is "<
>l; cout<<"enter breadth of rectangle"; cin>>b; area(l,b); perimeter(l,b); getch(); }