사이트 바로가기
블로그
- [codeup] 1362 : 숫자 피라미드3 (완료) 입력: 5 출력: 6 5 4 3 2 1 #include int top; int sum, jump=1; int factorial(int N){ if(N>0) {sum+=N; factorial(N-1);} else return sum; } int main(){ scanf("%d", &top); sum = factorial(top); for(int
- [codeup] 1912 (재귀함수)팩토리얼 계산 (완료) #include int sum,n; int factorial(int n){ if(n
- 로스트킹덤 액션RPG를 플레이 해보다 게임명 : 로스트킹덤 개발사 : FACTORIAL GAMES 서비스사 : 4:33 출시일 : 2016. 02. 25 플랫폼 : 스마트폰(안드로이드, IOS) 장르 : 액션RPG, MORPG
- [영진전문대학컴퓨터정보계열컴퓨터프로그래밍전공반] java 실습 오일러수 =-1){ e+=1.0/factorial(i); i++; } System.out.println("반복횟수="+(i-1)); System.out.println("오일러수"+e); } public static long factorial(int n){ long f=1; int i; for(i=1; i
- 4월 2일 실습내용 계산, overflow 고려 int factorial(int n); 결과 : overflow이면 -1 반환 #include int factorial(int n); int main(void { int a=1; double b=1.0; while(factorial(a)>0) { b +=1.0/factorial(a); // -> b = 1.0 + 1/1!
- “Factorial n”을 구하는 재귀(Recursive) 알고리즘을 작성 | 해맥(海脈).... 팩토리얼(Factorial n)- 1부터 양의 정수 n 사이에 있는 모든 정수를 곱한 값으로 n!로 나타냄 0! = 1 1! = 1 2! = 2...
- 상미분수치해 테일러급수해법 #include main()//////y`+3y=12의 테일러 급수해법 { while(1) { int p;/////////미세간격상미분 카운트용 int n,i,j,k,l,factorial
- 2. Fortran의 기초 Fortran90은 문자형 상수를 제외하고 대소문자 구분 하지 않음 변수(Variables) - 각 변수의 유형에 따라서 변수형이 정해짐 - Ex) INTEGER :: Numvalues, Factorial
- 5000!의 값과 소인수분해 (5000 계승(팩토리얼), 5000 factorial)의 값과 소인수분해 결과 (1) 값 5000!
← 이전
2 페이지