# Area and Circumference of a Circle Program in C

## WAP to calculate the area and circumference of a circle.

```
#include<stdio.h>
/*3. WAP to calculate the area and circumference of a circle. */
void main()
{
float r,c,a;
printf("Enter radius=");
scanf("%f",&r);
float pi=3.14;
c=2*pi*r;
a=pi*r*r;
printf("\nCircumference of a circle=%f",c);
printf("\nArea of a circle=%f",a);
}
```

#### Output:

Enter radius=7 Circumference of a circle=43.960003 Area of a circle=153.860016c language tutorial learn c language study c language

**Recent Posts**

- Fascinating Number Program in Java November 14, 2021
- Evil Number Program in Java November 14, 2021
- Insertion Sort Program in Java November 7, 2021
- Deleting Element From Array Program in Java November 7, 2021
- Adding Element In Array Program in Java November 7, 2021
- Capricorn or Kaprekar Number Program in Java October 16, 2021
- LCM and HCF of two numbers Program in C October 6, 2021
- Find day of week from a given date Program in C October 6, 2021
- Difference of two dates in years, months, days Program in C October 6, 2021
- Check whether a date is valid or not Program in C October 6, 2021
- Menu driven Program in C October 6, 2021
- Vowel or consonant Program in C October 6, 2021
- Perform arithmetic calculations on integers Program in C October 6, 2021
- Multiply two positive numbers without using "*" operator October 6, 2021
- Count digits Program in C October 6, 2021
- Product of digits Program in C October 6, 2021
- Print numbers from 1 to 10 using while loop Program in C October 6, 2021
- Find out the grade of a student Program in C October 6, 2021
- Binary Search Program in C October 2, 2021
- Employee Salary Based Program in Java September 10, 2021