Que - make a program for calculate area?
#include<iostream>
using namespace std;
void area(int len, int bre)
{
cout<<"area of rectangle is :"<<len*bre ;
}
int main()
{
int len,bre;
cout<<"enter length :";
cin>>len;
cout<<"enter breath :";
cin>>bre;
area( len, bre);
return 0;
}
Result :-
Result |
Tags
Function example