hello friends....
TAKE THE FIRST STEP TO KNOWLEDGE FRIENDS BECAUSE KNOWLEDGE IS FREE.
>> /* WRITE A C PROGRAM TO USE SYMBOLIC CONSTANT.(AREA OF CIRCLE) */
#include<stdio.h>
#include<conio.h>
#define PI 3.14
void main()
{
float r,ans;
clrscr();
printf("enter your radius : \n");
scanf("%f",&r);
ans = PI*r*r;
printf("area of circle is : %f\n",ans);
getch();
}
/* OUTPUT */
====================
enter your radius :
2
area of circle is : 12.560000
* * * * * * * * * * * * * *http://www.dnpdeveloper.com
if you have like this blog so share and subscribe, comment for this blog.
if your any question, so comment pleass.
MY INSTAGRAM ID : dnp176
Comments
Post a Comment