c program to define power of a functionwrite a


C program to define power of a function:

Write a program to use power of a function.

void main()

{

int x,y,po=1,i,j;

clrscr();

 

printf("Give x,y\n");

scanf("%d %d",&x,&y);

 

  for(i=1;i<=y;i++)

   {

   po=po*x;

   }

 

printf("%d power %d is %d",x,y,po);

getch();

}

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: c program to define power of a functionwrite a
Reference No:- TGS0174865

Expected delivery within 24 Hours