C Program To Calculate Volume of Sphere

preview_player
Показать описание

Given the value for radius of a Sphere, write a C program to calculate volume of the Sphere.

Formula To Calculate Volume of Sphere
volume = ( 4 * PI * radius * radius * radius ) / 3.0;

OR

volume = ( 1.333 * PI * radius * radius * radius );

where PI is approximately equal to 3.14

C Programming Interview / Viva Q&A List

C Programming: Beginner To Advance To Expert
Рекомендации по теме
Комментарии
Автор

how can we limit the answer to two decimal places??

humptydumptysatonawall
Автор

Volume k formula me /3.0 kyu kiya vo nhi samjha
Bcos if i put /3 the ans is coming wrong....pls help

tushardubey