C++ Program to find Volume of Cone
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
float pi , r , h , v ;
cout<<"Enter The Radius of Cone :";
cin>>r;
cout<<"Enter The Height of Cone :";
cin>>h;
pi=22.0/7;
v=1/3.0*pi*r*r*h;
cout<<"The volume Of Cone With Radius "<<r<<" And Height "
<<h<<" is "<<v<<endl;
getch();
return 0;
}
Comments
Post a Comment