#pragma hdrstop
#include <iostream>
#include <cmath>
usingnamespace std;
int main()
{
#define limit 1e-7
cout<<"This program will compute the Riemann zeta function for real values of x>1."<<endl<<endl;
double number, sum, term;
char answer;
cout<<"Enter a value for x. ";
cin>>number;
cout<<"Do you want to continue?";
cin>>answer;
while(term>limit)
{
sum=0;
term=0;
int denominator=1;
term=(1/(pow(denominator,number)));
sum=sum+term;
denominator++;
}
cout<<sum;
}