Sunday, October 16, 2011

Power {Function}

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main ()
{
     double n,p,res;
     clrscr ();
     printf ("Enter Number : ");
     scanf ("%lf",&n);
     printf ("Enter raised : ");
     scanf ("%lf",&p);
     res=pow(n,p);
     printf ("\nResult is %.2lf", res);
     getch ();
}

No comments:

Post a Comment