Thursday, 17 October 2013

CPP Program to Calculate Area of Circle

//Write a program to calculate area of circle.
#include<iostream.h>
#include<conio.h>
void main()
{
 clrscr();
 float r,area;
 cout<<"Enter radius -";
 cin>>r;
 area=3.14*r*r;
 cout<<"Area of circle -"<<area;
 getch();
}

Output:

No comments:

Comments System