Raise the power of a number n by the force d
#include <stdio.h>
#include<math.h>
int cube(int n,int d){
int r;
r=pow(n,d);
return r;
}
int main(void) {
int d,n;
printf("enter your number :");
scanf("%d",&n);
printf("To what degree do you want to raise your number :");
scanf("%d",&d);
printf("The exponent of %d in degree %d is :%d",n,d,cube(n,d));
return 0;
}