Thursday, June 3, 2021

C++ program check volume of sphere (POP) (111)

#include <iostream>

using namespace std;

int main()

{

int radious;

float volsp;

cout<<"please enter the radious of sphere:";

cin>>radious;

volsp=(4*3.14*radious*radious*radious)/3;

cout<<"the volume of the sphere is:"<<volsp<<endl;

} 

No comments:

Post a Comment