POWER OF VARIABLE

WAP to find out power of any number

#include

#include

void main ()

{

double no,r,res;

clrscr ();

printf ("Enter Number : ");

scanf ("%lf",&no);

printf ("Enter raised : ");

scanf ("%lf",&r);

res=pow(no,r);

printf ("\nResult is %.2lf", res);

getch ();

}


Output

Labels