Monday, March 26, 2012

Program to find area of circle in C code


/*****************<soeasyprograms.blogspot.in>******************/
#include<iostream.h>
#include<conio.h>
void main()
{
  int r;
  float a;
  clrscr();
   cout<<"Enter radius of circle"<<endl;
   cin>>r;
   cout<<"Area of circle is =";
   a=3.14*r*r;
   cout<<a;
   getch();
}


/*****************<soeasyprograms.blogspot.in>******************/

No comments:

Post a Comment