13.9k views
4 votes
Write the line of code to calculate the area of a circle with radius 3 and store it in a variable called

area.

1 Answer

3 votes

Answer:

area = 2.14 * 3 ** 2

Step-by-step explanation:

No clue what language you use but this should be pretty universal. To find the area of a circle you use pi(r) ^ 2 or pi times radius squared


\pi r^(2)

In python it looks like this:

>>> area = 3.14 * 3 ** 2

>>> print(area)

28.26 <Printed text

User Sujay S Kumar
by
6.5k points