#include<stdio.h>
float fun(int n);
int main()
{
printf("%f\n",fun(10));
}
float fun(int k)
{
int n;
float s,w,p,q;
n=1;
s=1.0;
while(n<=k)
{
w=2.0*n;
p=w-1.0;
q=w+1.0;
s=s*(w*w/p/q);
n++;
}
return s;
}
#include<stdio.h>
float fun(int n);
int main()
{
printf("%f\n",fun(10));
}
float fun(int k)
{
int n;
float s,w,p,q;
n=1;
s=1.0;
while(n<=k)
{
w=2.0*n;
p=w-1.0;
q=w+1.0;
s=s*(w*w/p/q);
n++;
}
return s;
}