hw question

Apr 9, 2019 at 2:08pm
Write a program to calculate the surface area (S) and volume of cylinder (V) if you know the height and the radius of the base of the cylinder.
Use the following formula to calculate both:
V= 𝝅𝒓
𝟐h
S= 𝟐𝝅𝒓𝒉 + 2𝝅𝒓
Apr 9, 2019 at 2:22pm
So can you get as far as say

cout << "Enter the radius";
cin >> radius;


Now add the height yourself.

Apr 9, 2019 at 5:52pm
isnt it S= 𝟐𝝅𝒓𝒉 + 2𝝅𝒓𝒓 ?
Last edited on Apr 9, 2019 at 5:53pm
Apr 9, 2019 at 6:05pm
It depends on your point of view. Look at it from one side you can't the the other one. So why should it count. (To be crystal clear: this remark is not ment to be taken as serious.)

Now seriously: the 2 in 𝟐𝝅𝒓𝒉 has anohter source than the 2 in 2𝝅𝒓𝒓.
Topic archived. No new replies allowed.