C Program to Calculate Area of a Circle



The formula to calculate the area of circle is π(pi)*r^2. The value of π is equal to 3.14(approx)



  1. //C Program to calculate area of a circle
  2. #include<stdio.h>
  3. int main()
  4. {
  5. float r, area;
  6. printf("Enter radius of the circle: ");
  7. scanf("%f", &r);
  8. area= 3.14*r*r;
  9. printf("Area = %f", area);
  10. return 0;
  11. }

Output
Output!
Please click on the like button if it worked

Solution not working or have any suggestions? Please send an email to [email protected]


Join Our Facebook Group


Share this example


Download Android App

download android app

Popular C Examples









codesadda.com

Codesadda.com is your home of programming solutions, tutorials, video tutorials and much more. Sign Up for our weekly newsletter to get update about new content.

Like us on Facebook | Connect with us on LinkedIn | Subscribe our Channel on Youtube