8
|
- Write a program to calculate area of
circle.
#include<iostream.h>
#include<conio.h> int main() { float r,area; cout<< "\nEnter radius of circle : ";
cin>>r; area = 3.14*r*r;
cout<<"Area of circle : "<<area;
getch(); return 0; } |
No comments:
Post a Comment