U E D R , A S I H C RSS

피보나치/정수민,남도연

No older revisions available

No older revisions available



Describe 피보나치/정수민,남도연 here.



~cpp 
#include <stdio.h>

int i=1, j=0, n=1, k=0, m;

void pibo () {
     k=i+j;
     i=j;
     j=k;
     n++;
     if ( n > m ) {
          printf("%d번때 숫자는 %d 입니다.",m ,k);
          system("PAUSE");
          return 0;
     }
     pibo();
}

int main()
{
    printf("몇번째 숫자를 출력하고 싶습니까?\n-> ");
    scanf("%d",&m);
    pibo();
}
   

-_-v



Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:31:29
Processing time 0.0384 sec