diff options
| author | Freddyh11 <[email protected]> | 2021-10-16 19:54:48 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-16 19:54:48 -0700 |
| commit | 518b97676211437b3f4782f5d45517290832bbcf (patch) | |
| tree | b1c3d334f53b8f56074e3e186852ae856a351f2c /Original C++ Project.cp | |
| parent | Initial commit (diff) | |
| download | cst116-proj1-freddyh11-master.tar.xz cst116-proj1-freddyh11-master.zip | |
Diffstat (limited to 'Original C++ Project.cp')
| -rw-r--r-- | Original C++ Project.cp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Original C++ Project.cp b/Original C++ Project.cp new file mode 100644 index 0000000..612df5e --- /dev/null +++ b/Original C++ Project.cp @@ -0,0 +1,31 @@ + + + +#include <iostream> +#define PI 3.14; +using namespace std; + + +int main() +{ + int volume = 0; + int Radius = 0; + int Height = 0; + + + cout << "Enter Radius"; + cin >> Radius; + + cout << "Enter Height"; + cin >> Height; + + volume = 3.14 * Radius * Radius * Height; + + cout << "The volume of the cylinder is approximately" << volume << std::endl; + + + return 0; + +} + + |