No products in the cart.

Write the program toin python To …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Write the program toin python To find the area of the circle
  • 1 answers

Gaurav Seth 4 years ago

Area of a circle can simply be evaluated using following formula.

<pre> Area = pi * r2 where r is radius of circle </pre>

Python3

<i id="copy-code-button" title="Copy Code">filter_none</i>

<i id="run-and-edit-button" lang="python3" title="Edit Code">edit</i>

<i id="run-code-button" lang="python3" title="Run Code and See Output">play_arrow</i>

<i title="Dark Mode">brightness_4</i>

<code># Python program to find Area of a circle </code>

<code> </code> 

<code>def</code> <code>findArea(r): </code>

<code>    </code><code>PI </code><code>=</code> <code>3.142</code>

<code>    </code><code>return</code> <code>PI </code><code>*</code> <code>(r</code><code>*</code><code>r); </code>

<code> </code> 

<code># Driver method </code>

<code>print</code><code>(</code><code>"Area is %.6f"</code> <code>%</code> <code>findArea(</code><code>5</code><code>)); </code>

http://mycbseguide.com/examin8/

Related Questions

What is alu
  • 1 answers
Write a program for swapping two numbers?
  • 0 answers
Define packages
  • 0 answers
Write a program for swapping two numbers
  • 1 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App