WAP TO FIND AREA OF CIRCLE (USING MACRO)

 

#include<iostream.h>
#include<conio.h>
#define PI 3.14
{
      double area;
      int r;
      clrscr();
      cout<<”Enter the radius:”;
      cin>>r;
      area=PI*r*r;
      cout<<area;
      getch();

}

Comments

Popular Posts