Challenge: Calculate the Area of the Sphere

In this challenge, you need to implement a given formula to calculate the area of a sphere.

We'll cover the following

Problem statement

You are given a radius r of the sphere. Your task is to find the area of the sphere using the following formula:

Area=4∗pi∗r2Area = 4*pi*r^2

Here, pipi is constant. Its value is 3.143.14.

Get hands-on with 1200+ tech skills courses.