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