Advertisement
noshin98

113

Jun 30th, 2016
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.17 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     double n,p,k;
  5.     while(scanf("%lf%lf",&n,&p)==2)
  6.     {
  7.         k=pow(p,1/n);
  8.         printf("%.0lf\n",k);
  9.     }
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement