Saturday 19 July 2014

Write a C code which can calculate volume of the 3D objects i.e. box, prism, cylinder and sphere. Take necessary inputs from the user and display the results. volume of a box=l×w×h l= length, w= width, h = height volume of a sphere= 4/3 ×π×r^3 r = radius of sphere volume of a prism=AofT ×H AofT= 1/2×b×h b = length of the base of the triangle, h = height of the triangle, H = height of the triangular prism volume of a cylinder= π× r^(2 )×H r = radius of the circle of the base, H = height of the cylinder

Leave a Comment
If You Enjoyed This, Take 5 Seconds To Share It

0 Questions: