Computer Science, asked by janhavi2850, 4 months ago

write a program to gind the area of circle where r is radius.A=pi*r*r; where pi=3.14​

Answers

Answered by TheMoonlìghtPhoenix
13

Explanation:

ANSWER:-

# Program to find the area of circle

r = int(input("Enter Radius"))

a = 3.14 * r

print(a)

  • Above coding will give us the required output.
  • Here, int is used to depict integer value.
  • a is the area, as we know area of circle \pi r².
  • r here is the RADIUS of the circle.
  • # is used to show the comment on what the project is based on.
  • The above coding is a Python coding.
  • Print còde is used to give the output.
  • We also use if-else format with elif.
  • Also, we can have it in Visual Basic as:-

Private sub ----

Dim r,a as integer.

r = Val(Textbox1 . text)

a = Val(Textbox2 . text)

a = 3.14 * r * r

Msgbox(The & answer & is & "a")

End Class

Answered by Mister360
10

Answer:

#Program for finding area of circle

r = int(input("Enter Radius"))

a = 3.14 * r

Know More:-

  • R is the Radius
  • A is the area
  • π = 3.14
  • The formula is πr²
  • Print códe is used to take output
  • Type :- Python

 \begin{gathered} \sf \: done \end{gathered}

Similar questions