Tuesday, January 4, 2011

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

No comments:

Post a Comment