Yeah, thats the right answer. seems like the first and last, second and second last, and third and third last should all be reciprocals of each other by the pattern.
Um i would say..
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
int main();
{
int answer;
int number;
std::cout << "Write in your number that you want to compute 1.0/n + 2.0/(n-1) + 3.0/(n-2) + .... + (n-1)/2 + n/1";
std::cin >> number;
answer = 1.0/number + 2.0/(number-1) + 3.0/(number-2) + (number-2)/3 + (number-1)/2 + number/1
std::cout << " your answer is " << answer;
return 0;
}
Or something like that. Ok im super new too so dont flame at me if im far from it