Friday, July 31, 2009

Can anyone help me in this program?urgently need it plss....?

write a program that reads in the radius of the circle and outputs one of the following depending on the user request:


1.circumference of the circle


2.area of the circle


3.diameter of the circle


pls phelp me.. i use c++ (printf and scanf). all of the given request (1-3)must have a formula. thanks in advance...

Can anyone help me in this program?urgently need it plss....?
use switch statement


and luk for formulas on net


this will do....
Reply:here are the formulas





circumference= 2 * 3.1416 * radius


area= 3.1416 * radius * radius


diameter = radius * 2








^_^v

plum

No comments:

Post a Comment