구한 해를 txt파일로 저장되게 하는건데요.. 고수님들 도와주세요 !
우주
2023.04.01
#includestdio.h
#includemath.h
int main(void)
{double t=0, y=0, f=0, h=0.1, R=20, L=50, E=10;
int i, n=100, a=0;for(i=0;i=n;i++)
{
y=y+h*f;
f=-R/L*y+E/L;
t=a+i*h;
printf( \t\t %.2f %.6f \n, t, y);
}
return 0;
}
여기서 어떻게 해야되나요? 나온값을 txt파일로 저장하게 하려면...