Problem: Write a program that accepts Radius of a circle and find its diameter, circumference, and area.
PI = 3.14 dia = 0.0 area = 0.0 cir = 0.0 radius = input("Enter value of radius: ") radius = float(radius) dia = radius * radius area = PI * dia cir = 2 * PI * radius "Diameter of the circle is " + str(dia) |> print "Area of the circle is " + str(area) |> print "Circumference of the circle is " + str(cir) |> print
The code is posted here: http://more-codes.com/problems.php
Github Link: problem4.coco
Github Repository: Easy Problems
For more Coconut Programming Problems and Solutions, please visit us at more-codes.com
Facebook: Like Us!
Twitter: Follow Us!
Thank you very much.
The post Coconut Programming Problem and Solution – Circle appeared first on MoreCodes.
This post first appeared on MoreCodes | Learn Programming Problems And Solutions In C,C++, Java, D, VB.Net, C#, F#, Ruby, Python, please read the originial post: here