#include #include using namespace std ;int main(){const int size=6;int r[size]={};//크기가 6인 배열 선언int j,temp;srand( (unsigned)time(NULL) ); //seed값으로 시간을 줘서 임의의 수 생성for(int i=0;i
#include using namespace std;int main(){int n, i, f1=1, f2=0, f3; // 입력값을 저장할 변수 n과 피보나치 수열을 위한 변수 3개와 반복문을 위한변수 i 선언cout < "How many Fibonacci numbers do you need? : ";cin >> n; // 피보나치 수열의 갯수 입력 받음for( i = 1; i