daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Oct 17th, 2018 71 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. double power(double x,int n)
  2. {
  3.   if (n == 0)
  4.     return 1.0;
  5.  
  6.   if(x == 0)
  7.     {
  8.       printf("Invalid Base: '0' ");
  9.       return 1;
  10.     }
  11.   if(n < 0)
  12.     {
  13.       x = 1.0/x;
  14.       n = -n;
  15.     }
  16.   demand(n>0, power failed);
  17.   return power2(x, n);
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top