# include <iostream>
usingnamespace std ;
class StaticCircle {
private :
staticconstfloat pi = 3.142 ;
public :
staticfloat getArea ( float ) ;
};
staticfloat StaticCircle::getArea( float r )
{
return r * r * pi ;
}
int main ()
{
int numberOfCircles ;
cout << "Enter Number of Circle : " ;
cin >> numberOfCircles ;
StaticCircle circle ;
float raduis[numberOfCircles] ;
for ( int i = 0 ; i <numberOfCircles ; i++ )
{
cout << "Enter radius of Circle " << i+1 << " : " ;
cin >> raduis[i] ;
}
for ( int i=0 ; i < numberOfCircles ; i ++ )
{
cout << circle.getArea(i);
}
system("pause") ;
return 0 ;
}