Documents
Resources
Learning Center
Upload
Plans & pricing Sign in
Sign Out

RADIUS n diameter C++

VIEWS: 13 PAGES: 1

RADIUS n diameter C++

More Info
									Program [radius n diameenter]

#include<iostream.h>
#include<conio.h>
main()
{
       float radius,circum,diameter,area;
       cout<<"Please enter the radius of circle= ";
       cin>>radius;
       cout<<"Diameter of circle = ";
       diameter=2*radius;
       cout<<diameter;
       cout<<"\nCircumference of circle = ";
       circum=2*3.14*radius;
       cout<<circum;
       cout<<"\nArea of circle = ";
       area=3.14*radius*radius;
       cout<<area;
       getch();
       }

								
To top