Exercise CircleComputation (User Input) ~ Programming is Fun
 Programming is Fun!

www.anandsingh.net
Subscribe For Free Updates!

We'll not spam mate! We promise.

Friday, September 12, 2014

Exercise CircleComputation (User Input)

Write a program called CircleComputation, which prompts user for a radius (of double) and compute the area and perimeter of a circle. The output shall look like:
Enter the radius: 1.2
The area is 4.5239
The perimeter is 7.5398223686155035
Hints: π is kept in a constant called Math.PI.


Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →

0 comments:

Post a Comment