using namespace std;
#include<iostream>
int main()
{
double s=1,i; int n;
cout<<"Enter n(n=2k):";
cin>>n;
if(n%2>0)
{
cout<<"the number you entered is odd";
cin>>n;
}
else
{
for(i=2;i<=n;i+=2)
{
s+=(i+1)/i;
}
cout<<"sum of them="<<s;
}
}
dXNpbmcgbmFtZXNwYWNlIHN0ZDsgCiNpbmNsdWRlPGlvc3RyZWFtPgoKaW50IG1haW4oKQp7CmRvdWJsZSBzPTEsaTsgaW50IG47CiAKY291dDw8IkVudGVyIG4obj0yayk6IjsKY2luPj5uOwppZihuJTI+MCkKCXsKCWNvdXQ8PCJ0aGUgbnVtYmVyIHlvdSBlbnRlcmVkIGlzIG9kZCI7CgljaW4+Pm47Cgl9CgllbHNlCgl7CmZvcihpPTI7aTw9bjtpKz0yKQoJewoJcys9KGkrMSkvaTsKCX0KY291dDw8InN1bSBvZiB0aGVtPSI8PHM7CgkgfQogIAp9