Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

find area with circumference of a circle code example

Example 1: area and circumference of a circle

#include <stdio.h>
#define PI 3.142
int main(){
    float r, C, A;
    printf("What is the radius: \n");
    scanf("%f", &r);
    C = 2 * PI * r;
    A = PI * r * r;
    printf("\nCincumference is and %f Area is %f\n", C, A);
}

Example 2: how to find area of circle

def circle(radius):
	3.14 * radius * radius 
circle(12)

Tags:

C Example

Related

npm i json-server code example visual studio code c# mvc auto recomile code example controller a button unity code example react webproxy code example serializer extra_kwargs options code example decode image to base64 code example bootstrap 4 input-group code example function for a prime number c code example select with wpdb code example python lists print all code example separate words with character in c++ code example java 8 convert int array to list code example

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy