Header Ads

Header ADS

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  1011 👀 Sphere 👀 in C++
URI Solution 1011 👀 Sphere 👀 in C++
https://www.urionlinejudge.com.br/judge/en/problems/view/1011

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

URI 1070 Six Odd Numbers Solution in C++

URI 1070 Six Odd Numbers Solution in C++ Before seeing the solution make sure that you tried enough. Don’t paste the whole code, just fin...

Powered by Blogger.