Param World!
Tips and Tricks Available for Computer, Electronics, Softwares, Internets
Pages
Home
Electronics
8051 uC
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:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Comments System
No comments:
Post a Comment