Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int a,n;
- int result;
- cin >> a;
- cin >> n;
- for(int i = 2; i <= n;i++)
- result += 1 / pow(a,n);
- count << result << endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement