Professional Documents
Culture Documents
ALGORITHM:
Step1: Start the program.
S t e p 2 : I n p u t t h e r a d i u s o f t h e
circle.
Step3:Find the area and circumfere
n c e o f t h e c i r c l e u s i n g t h e formula.
Area=3.14*r*r
Circumference=2*3.14*r
PROGRAM:
#include<stdio.h>
main()
{
Floatrad,area,circum;
printf(“\nEnter the radius of the circle”);
scanf(“%f”,&rad);
area=3.14*rad*rad;
circum=2*3.14*rad;
printf(“\nArea=%f”,area);
printf(“\nCircumference=%f”,circum);
}
OUTPUT:
RESULT:
The program is compiled,executed and verified
successfully.
2.FINDING EXPONENT
OF GIVEN NUMBER
AIM:
ALGORITHM:
S t e p 1 : S t a r t t h e p r o -
g r a m .
Step2:Enter the x value and
n value.
S t e p 3 : S e t a l o o p u p t o
n .
Step4:Find the exponent valu
e o f x temp=temp*x/isum=sum+temp.
S t e p 5 : A ft e r t h e e x e c u ti o n o f
the loop print the exponent value.