How to write code in to find area of circle. How to write code in to find diameter of circle. How to write code in to find circumference of circle.
The step which is follow to make this code.
Input radius of circle from user. Store it in a variable say radius.
Apply the formulas to calculate diameter, circumference and area. Use diameter = 2 * radius, circumference = 2 * 3.14 * radius and area = 3.14 * radius * radius.
Print all resultant value diameter, circumference and area.
NOTE= %.2f is used to print the fractional value up to two decimal places. You can also use %f to print up to default 6 decimal places.
#coding #programming #programmer #python #developer #javascript #code #coder #technology #html #computerscience #codinglife #java #webdeveloper #tech #webdevelopment #css #software #softwaredeveloper #webdesign #linux #programmers #codingisfun #softwareengineer #php #programmingmemes #programminglife #machinelearning #development #hacking
Ещё видео!