Write and test a program that computes the area of a circle. This program should request a number representing a radius as input from the user. It should use the formula 3.14*radius**2 to compute the area and then output this result suitably labeled. Include screen shot of code.

Respuesta :

The program that computes the area of a circle is represented as follows:

x = int(input("Write the length of the radius of the circle: "))

area = 3.14 * x**2

print(area)

The code is written in python

Code explanation:

  • The first line of code ask the user to input the length of the radius. The variable x is used to store the user's input.
  • The variable "area" is used to store the arithmetic manipulation of area of a circle.
  • Then, we print the variable "area". This will print the actual area of the circle with the particular radius you inputted.

learn more on python program: https://brainly.com/question/16398286?referrer=searchResults

ACCESS MORE