Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. int a,n;
  2. int result;
  3.  
  4. cin >> a;
  5. cin >> n;
  6.  
  7. for(int i = 0; i < n;i++)
  8. result += 1 / pow(a,n);
  9.  
  10. count << result << endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement