From 518b97676211437b3f4782f5d45517290832bbcf Mon Sep 17 00:00:00 2001 From: Freddyh11 <91991071+Freddyh11@users.noreply.github.com> Date: Sat, 16 Oct 2021 19:54:48 -0700 Subject: Add files via upload --- Bens Broken Code.cp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Bens Broken Code.cp (limited to 'Bens Broken Code.cp') diff --git a/Bens Broken Code.cp b/Bens Broken Code.cp new file mode 100644 index 0000000..e058440 --- /dev/null +++ b/Bens Broken Code.cp @@ -0,0 +1,31 @@ + +#include +#include + +using namespace std; + +int main() + +{ + float height; + float radius; + float pi = 3.141592654; + Float volume; + + + cout << "******************************************************************"; + cout << "\n This program will tell you the volume of a cylinder \n"; + cout << "******************************************************************\n"; + cout << "\n\tPlease enter the radius of the cylinder (cm): "; + cin >> radius; + cout << "\n\tPlease enter the height of the cylinder (cm): "; + cin >> height; + + + volume = pi * radius * height; + + + cout << "\n\n\tThe volume of this cylinder is: " << volume << " cm^3\n\n\n "; + + return 0; +} -- cgit v1.2.3