7 kyu
Some Circles
747 of 1,418otajor
Description:
Write a function that takes as its parameters one or more numbers which are the diameters of circles.
The function should return the total area of all the circles, rounded to the nearest integer in a string that says "We have this much circle: xyz".
You don't know how many circles you will be given, but you can assume it will be at least one.
So:
sum_circles(2) == "We have this much circle: 3"
sum_circles(2, 3, 4) == "We have this much circle: 23"
Translations and comments (and upvotes!) welcome!
Fundamentals
Geometry
Algebra
Similar Kata:
Stats:
Created | Oct 6, 2015 |
Published | Oct 6, 2015 |
Warriors Trained | 2317 |
Total Skips | 114 |
Total Code Submissions | 5858 |
Total Times Completed | 1418 |
JavaScript Completions | 583 |
Python Completions | 747 |
Ruby Completions | 147 |
Total Stars | 25 |
% of votes with a positive feedback rating | 81% of 233 |
Total "Very Satisfied" Votes | 169 |
Total "Somewhat Satisfied" Votes | 41 |
Total "Not Satisfied" Votes | 23 |