Untitled
unknown
plain_text
9 months ago
368 B
15
Indexable
#include <iostream>
using namespace std;
void Solve(double a, double b, double& c, double& d);
int main(){
double radius ,height,areaC =0,V =0;
cin >> radius >>height ;
Solve(radius ,height,areaC,V);
cout << areaC << " " << V;
return 0;
}
void Solve(double a, double b, double& c, double &d) {
c = a * a * 3.14159;
d= c * b;
return;
}
Editor is loading...
Leave a Comment