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

Опубликовано: 15 Июнь 2017
на канале: 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


На этой странице сайта вы можете посмотреть видео онлайн Python Import Math; Using Math.pi; calculate circle area &circumference, Using math.sqrt длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Online Skills 15 Июнь 2017, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 7,825 раз и оно понравилось 57 зрителям. Приятного просмотра!