Solver DESCRIBE a cylinder
Algebra
->
Bodies-in-space
-> Solver DESCRIBE a cylinder
Log On
Geometry: Bodies in space, right solid, cylinder, sphere
Geometry
Solvers
Solvers
Lessons
Lessons
Answers archive
Answers
Source code of 'DESCRIBE a cylinder'
This Solver (DESCRIBE a cylinder)
was created by by
ichudov(507)
:
View Source
,
Show
,
Put on YOUR site
About ichudov
:
I am not a paid tutor, I am the owner of this web site!
==section input Describe the cylinder with the base radius of *[input r=1] and height of *[input h=2]. ==section solution perl $V = (3.1415*$r*$r*$h); print " This cylinder has volume {{{V=pi*r^2*h = pi*$r^2*$h = $V }}}. This cylinder has surface area of {{{S=2*pi*r^2+2*pi*rh = " . (2*3.1415*$r*$r + 2*3.1415*$r*$h) . "}}}."; ==section output V ==section check