📄 pe30.c
字号:
#include "conio.h"
#include "math.h"
#include "stdio.h"
double countValue(int n)
{int i;
double k=0;
for(i=1;i<=n;i++)
if(i%21==0) k+=i;
k=sqrt(k);
return k;
}
main()
{FILE *fp;
fp=fopen("out.dat","w");
clrscr();
printf("%f",countValue(1000));
fprintf(fp,"%f",countValue(1000));
fclose(fp);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -