WRITE A PROGRAM FOR CALCULATE AREA BY FUNCTION IN C++

 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 


Post a Comment

Previous Post Next Post