Wisdom Materials
Home
About Us
Our Clients
Careers
Services
Education
Jobs
News
Business
Health
Astrology
Entertainment
RealEstate
Devotion
Contact Us
C Programs
/ Area of a Circle calculation C Program
Program Name
Write a C Program for Area of a Circle calculation.
Theory
Program Code
Copy Program Code
#include
int main() { float circlearea,circleradius,pi,circleperimeter; pi=3.14; printf("Enter Radius Value:\n"); scanf("%f",&circleradius);// circlearea=pi*circleradius*circleradius; circleperimeter=2*pi*circleradius; printf("Circle Area=%f\n",circlearea); printf("Circle Perimeter=%f",circleperimeter); return 0; }
Input
Enter Radius Value: 10
Output
Circle Area= 314.000000
Circle Perimeter= 62.800003
Online C Compiler (To copy paste and Run the c program)
Home
Back