Write a program to calculate area of circle using friend  function ?        
        1
                    
                            
                                        2013-05-28T11:01:48-0400
                    
                                                    
                                #include <iostream>
#include <math.h>
using namespace std;
int area(double R)
{
   double AREA2=0;
   double Pi=3.14159265358979;
   AREA2= Pi*R*R;
   cout<<AREA2;
}
int main()
{
   double r;
   cout<<"enter R"<<endl;
cin>>r;
area(r);
   return 0;
}
                            
                                                 
                 
                    
        
            
                Need a fast expert's response?
                Submit order
                and get a quick answer at the best price
                for any assignment or question with DETAILED EXPLANATIONS!
             
            
            
         
            
        Learn more about our help with Assignments: 
C++     
 
                        
Comments