hw question

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𝝅𝒓
So can you get as far as say

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


Now add the height yourself.

isnt it S= 𝟐𝝅𝒓𝒉 + 2𝝅𝒓𝒓 ?
Last edited on
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.