Please I need more explanation on dis Nd solution | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please I need more explanation on dis Nd solution

During your math class, you are given a task to calculate the perimeter of a circle. You decide to write a small program that will take the radius as input, and will calculate and print the perimeter for you. The value for π (pi) is already defined. Sample Input 4 Sample Output 25.12 https://www.sololearn.com/discuss/2759255/?ref=app

20th Apr 2021, 10:05 AM
haruna uriel
haruna uriel - avatar
1 Answer
+ 3
The value of perimeter is 2*Pi*r You have already given the value of PI and r. so just print 2*Pi*r .
20th Apr 2021, 10:16 AM
The future is now thanks to science
The future is now thanks to science - avatar