URI 1011 Sphere Solution in C++
URI Solution 1011 👀 Sphere 👀 in C++
URI Online Judge Solution 1011 Sphere in C++Before seeing the solution make sure that you tried enough. Don’t paste the whole code, just find out the logic. If you stuck in trouble, just inform me on comment.
URI Solution 1011 👀 Sphere 👀 in C++ |
URI Online Judge Solution 1011 Sphere in C++
#include<bits/stdc++.h>
using namespace std;
int main(){
int R;
double res;
cin>>R;
res=(4.0/3*3.14159*R*R*R);
cout<<fixed;
cout<<setprecision(3)<<"VOLUME = "<<res<<endl;
return 0;}
No comments