C언어 프로그래밍 좀 풀어주세요ㅠㅠ

C언어 프로그래밍 좀 풀어주세요ㅠㅠ

작성일 2024.05.21댓글 1건
    게시물 수정 , 삭제는 로그인 필요

profile_image 익명 작성일 -

아래의 코드로 테스트 하여 보세요.

#include <float.h> #include <math.h> #include <stdio.h> double E(unsigned n, double x) { double next = x / n; return (next + 1.0 == 1.0) ? next : next + E(n + 1, next); } double Euler() { return 1.0 + E(1, 1.0); } int main() { printf("\n\n%.*f\n\n", DBL_DECIMAL_DIG - 1, Euler()); // 16자릿수 출력 return 0; }

## Test Print ##

C언어 프로그래밍좀 해주세요

C언어 프로그래밍좀 해주세요 ㅠㅠㅠ printf로 이름? 물어보고 홍길동... 좀난해하게 설명한거같은데..꼭좀 풀어주세요 ㅠㅠ엉엉 void 말고 int...