C Program For FINDING POWER VALUE OF GIVEN NUMBER.
#include<stdio.h>
#include<conio.h>
void main()
{
int n,i,r,c=1;
clrscr();
printf("Enter the n value:");
scanf("%d",&n);
printf("Enter the r value:");
scanf("%d",&r);
for(i=1;i<=r;i++)
{
c=c*n;
}
printf("the power value is=%d",c);
getch();
}