#include <stdio.h>
int main()
{
float PI=1.0;
float n=1.0;
int i=1;
while(n>1e-6)
{
n=ni/(i2+1);
PI=PI+n;
i++;
}
printf("%.6f\n",PI*2);
return 0;
}
08-19
08-19
08-19
#include <stdio.h>
int main()
{
float PI=1.0;
float n=1.0;
int i=1;
while(n>1e-6)
{
n=ni/(i2+1);
PI=PI+n;
i++;
}
printf("%.6f\n",PI*2);
return 0;
}