C ++ program to find the maximum sum such that no three are consecutive using recursion .
#include <bits/stdc++.h> NEW_LINE using namespace std ; int arr [ ] = { 100 , 1000 , 100 , 1000 , 1 } ; int sum [ 10000 ] ;