PROGRAM TO ENTER RADIUS OF A CIRCLE, FIND CIRCUMFERENCE AND AREA WITH THE SPECIFIED AREA USE RETURN IN THE FUNCTION


LIST OF PROGRAMS


#include<stdio.h>
#include<conio.h>
double r,c,a;
void main()
{
double circum(double r);
double area(double r);
clrscr();
printf("enter the radius");
scanf("%lf",&r);
c=circum(r);
a=area(r);
printf("\nAREA IS:%lf",a);
printf("\nCIRCUMFERENCE IS : %lf",c);
getch();
}
double circum(double r)
{
c= 2*3.14*r;
return c;
}
double area(double r)
{
a=3.14*r*r;
return a;
}

LIST OF PROGRAMS


Comments