Question: Very new to C++. Just started taking it this semester. For some reason my output keeps coming out as [0.000] and I cannot figure out

Very new to C++. Just started taking it this semester. For some reason my output keeps coming out as [0.000] and I cannot figure out why. Can someone please help me? ** I also tried making r & h a double and it still came out as 0.Very new to C++. Just started taking it this semester. For some

vou A WNA #include #include #include using namespace std; 4 int main() { int r; int h; const double pi = 3.14159; cout > r; cout > h; double volume = (1/3) * pi * (r * r) * h; 21 cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!