enamsustcse

113 Power of Cryptography

May 1st, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main()
  5. {
  6.     double n, p, x, k;
  7.  
  8.     while (scanf("%lf %lf", &n, &p) == 2)
  9.     {
  10.         x = 1 / n;
  11.         k = pow(p, x);
  12.  
  13.         printf("%.0lf\n", k);
  14.     }
  15.  
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment