0

Hi i would like to know on how to write a code for calculating the volume of cylinder and sphere.Am new to C programming.Tks

10th May 2019, 12:49 PM
Zabu
3 Réponses
0
You just need to define a constant pi and declare two variables height of the cylinder and radius of the base of cylinder.
10th May 2019, 1:19 PM
Werg Serium
Werg Serium - avatar
0
It's just basic maths, you don't need to have a lot of knowlegment in c lol
10th May 2019, 1:20 PM
Werg Serium
Werg Serium - avatar
0
In the sphere you just need the radius and the pi xD
10th May 2019, 1:20 PM
Werg Serium
Werg Serium - avatar