You are on page 1of 1

#include<iostream>

#include<cmath>

using namespace std;

int main()

float r=0;

float a, v;

const float pi= 22/7;

cout<<"Enter radius:";

cin>>r;

//calculation area of the circle

a= pi*r*r;

//calculating volume of tye sphere

v= (4/3)*r*r*r;

cout<<"Area of the circle:"<<a;

cout<<"\nVolume of the sphere:"<<v;

return 0;

You might also like