Tuesday, 4 October 2016

Program to find Area and Circumference of a Circle .

#include<iostream.h>
#include<conio.h>
void main ()
{
clrscr ();
float C,r,a;
cout<<“Enter radius of the circle “;
cin>>r;
float const Pi=3.14;
C=2*Pi*r;
a=Pi*r*r;
cout<<“Circumference or Perimeter of the circle is “<<C<<“\n”<<“Area of the circle is “<<a;
getch();
}

No comments:

Post a Comment

Basic Implementation of Array as a Pointer

#include<iostream.h> #include<conio.h> void main() { clrscr();   int arr[5];   cout<<"Enter 5 nos. ";   f...