Pages

Thursday, 22 February 2018

Evaluates the Area of a Circle in C ++ Programming Language.

Evaluates the Area of a Circle in C ++ Programming Language.

#include<iostream>
using namespace std; 

  void  area(float);

  int main()
  {
    float  radius;
    cin>>radius;
    area(radius);
    return 0;
}

void  area(float r)
{
    cout << “the area of the circle  is” << 3.14*r*r << ”\n”;

}