C++ Programs & Stuffz

Nothing like anything!!!

Please Click on ADS!!

Please Click on the above ads given by GOOGLE , so that I can maintain my blog!!

Tuesday, August 31, 2010

Find the volume of a sphere

//pgm to find the volume of a sphere
#include<iostream.h>
#include<conio.h>
void main()
{
    float r,V;
    clrscr();
    cout<<"enter the radius of the sphere";
    cin>>r;
    V=(1.33*3.14*r*r*r);
    cout<<"volume="<<V;
    getch();
}

0 comments:

Post a Comment

free counters