storing Fibonacci numbers
long long int arr [ MAX ] ; arr [ 0 ] = 0 ; arr [ 1 ] = 1 ; for ( int i = 2 ; i < MAX ; i ++ ) arr [ i ] = arr [ i - 1 ] + arr [ i - 2 ] ; cout << " Fibonacci ▁ numbers ▁ divisible ▁ by ▁ " " their ▁ indexes ▁ are ▁ : STRNEWLINE " ; for ( int i = 1 ; i < MAX ; i ++ ) if ( arr [ i ] % i == 0 ) cout << " ▁ " << i ; }