# Circumference Of Circle C Example Program

## Definition

When a circle's diameter is 1, its circumference is π. When a circle's radius is 1—called a unit circle—its circumference is 2π.

## Formula

The circumference of a circle is written

π = C / d

Or, equivalently, as the ratio of the circumference to twice the radius. The above formula can be rearranged to solve for the circumference:

`C = π * d = 2π * r`

here,

```r = Radius
π = ~3.14```

## Circumference Of Circle Example Program

``````/*##Circumference Of Circle*/
/*##Calculation Programs, Datatype Programs, Basic Programs*/

#include<stdio.h>

float PI = 3.14;

int main(){

printf("\nEnter the radius of Circle : ");

ci = 2 * PI * radius;

printf("\nCircumference of Circle : %f", ci);

return (0);
}``````

## Sample Output

``````
Enter the radius of Circle : 2

Circumference of Circle : 12.560000``````
{"ft_lang_label":"__label__en","ft_lang_prob":0.65963095,"math_prob":0.9618621,"size":1328,"snap":"2020-10-2020-16","text_gpt3_token_len":339,"char_repetition_ratio":0.19637462,"word_repetition_ratio":0.044444446,"special_character_ratio":0.26807228,"punctuation_ratio":0.11983471,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99945515,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-02-21T03:07:19Z\",\"WARC-Record-ID\":\"<urn:uuid:82f4596e-4118-43f1-8679-17999ebf325b>\",\"Content-Length\":\"21194\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b9b6d711-44f7-47c7-b5e4-bb766bd2ae7d>\",\"WARC-Concurrent-To\":\"<urn:uuid:7f9c98c7-df2e-4c32-a5d5-a1d6b9e03d74>\",\"WARC-IP-Address\":\"172.217.13.243\",\"WARC-Target-URI\":\"https://www.c-lang.thiyagaraaj.com/c-programs/c-calculation-programs/circumference-of-circle-c-example-program\",\"WARC-Payload-Digest\":\"sha1:2UGRSLZSVJ55H6PBJCTTBZNRFS435QBY\",\"WARC-Block-Digest\":\"sha1:LOJJEXXGM6OXTC5VPHWZFPTRJKTIQE2Q\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-10/CC-MAIN-2020-10_segments_1581875145438.12_warc_CC-MAIN-20200221014826-20200221044826-00122.warc.gz\"}"}