Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
#include <iomanip>
#include <math.h>
using namespace std;
int main() {
double radius;
double height;
double volume;
double area;
cout << fixed << setprecision(1);
cout<< "what is the radius number ? \n" << endl;
cin>> radius;
cout<< "what is the height number ? \n" << endl;
cin>> height;
volume = M_PI * pow(radius, 2) * height;
area = 2 * M_PI * radius * height + 2 * M_PI * pow(radius, 2);
cout << "Volume: " << volume << " cubic inches" << endl;
cout << "Surface area: " << area << " square inches"<< endl;
return 0;
}