Technical && Placement
Pages
Home
C
C technical question
C++
Java
Assembly program
Group Discussion
Difference Between
Other
C programming Tutorial
C program for area of circle
C program for area of circle
#include
<stdio.h>
#define
PI 3.141
int
main()
{
float
r, a;
printf(
"Radius: "
);
scanf(
"%f"
, &r);
a = PI * r * r;
printf(
"%f\n"
, a);
return
0;
}
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment