Home
About Us
Contact Us
Privacy Policy
Home
Programs
_C Programs
_C++ Programs
_Python Programs
Operations on Data
_Searching
Projects
_Python
About Us
Contact Us
Privacy Policy
Home
C Program
C Program To Find Area of a Circle
C Program To Find Area of a Circle
Coding PLEX
January 06, 2022
PROGRAM :
main.c
#include
<stdio.h>
#define
pie
3.14
int
main
()
{
float
r
,
a
;
printf
(
"Enter the Radius of a circle
\n
"
);
scanf
(
"%f"
,&
r
);
a
=
pie
*
r
*
r
;
printf
(
"
\n
Area of circle having Radius(%.2f) is %.2f"
,
r
,
a
);
}
#include
#define pie 3.14 int main() { float r,a; printf("Enter the Radius of a circle \n"); scanf("%f",&r); a = pie*r*r; printf("\nArea of circle having Radius(%.2f) is %.2f",r,a); }
Copy
OUTPUT :
Enter the Radius of a circle
3
Area of circle having Radius(3.00) is 28.26
Post a Comment
0 Comments
Featured Post
QR Code Generator
QR Code Generator Application in Python Using Kivy Module - Beginner's Python Project For Students
Coding PLEX
January 21, 2022
Here is the Complete Code For the QR Code Generator Application in Python Using Kivy …
Popular Posts
Social Plugin
Labels
C Program
18
Python Program
11
Projects
8
Python Turtle Arts
5
C++ Program
3
Games
1
0 Comments