source file name: Areaptr.C
void main()
{
int rad;
int *radptr;
float acir,cc;
//clrscr();
printf("\n enter radius of circle");
scanf("%d",&rad);
radptr=&rad;
acir=3.1429**radptr**radptr;
cc=2*3.1429**radptr;
printf("\n Area =%f and Circumference of Circle= %f ",acir,cc);
getch();
}
output:
0 Comments
Post a Comment