Computer Science, asked by Drazze6720, 1 year ago

Write a c++ program to find tne area and volume of sphere using formula are : area = 4*pi*r*r volume = 4/3*pi*r*r

Answers

Answered by nitish8089
2
May this will help you:::::
#include <iostream>
using namespace std;

int main() {
int radius;
double area,volume;
cin>>radius;
area=(4*3.14)*radius*radius;
cout<<"area of sphere is:"<<area;
volume =(4.0/3)*3.14*radius*radius*radius;
cout<<"volume of sphere is:"<volume;
return 0;
}
Similar questions