Python Import Math; Using Math.pi; calculate circle area &circumference, Using math.sqrt

Publicado em: 15 Junho 2017
no canal de: Online Skills
7,825
57

#Importing Math Module
import math
#Declaring a variable called rad with value 5
rad = 5
#Putting in the formula for circumference
circ = math.pi * 2 * rad
#Now the formula for area of the circle
area = math.pi *rad ** 2
#Printing the results
print(circ, area)
OUTPUT:
31.41592653589793 78.53981633974483
Calculating Square Root for 100
#math.sqrt(100)
Output/Result:
10.0
#Calculating Square Root for 25
math.sqrt(25)
Output/Result:
5.0


Nesta página do site você pode assistir ao vídeo on-line Python Import Math; Using Math.pi; calculate circle area &circumference, Using math.sqrt duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Online Skills 15 Junho 2017, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 7,825 vezes e gostou 57 espectadores. Boa visualização!