Answers for "Raise the power of a number n by the force d"

C
0

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;
}
Posted by: Guest on July-17-2021

Code answers related to "Raise the power of a number n by the force d"

Code answers related to "C"

Browse Popular Code Answers by Language