diff --git a/recammans sequence.cpp b/recammans sequence.cpp new file mode 100644 index 0000000..68ee760 --- /dev/null +++ b/recammans sequence.cpp @@ -0,0 +1,26 @@ +#include +using namespace std; +int main() +{ + // Code to find nth term of a Recamán's Sequence // + int n,x=0; + cout<<" Please enter the number of terms you wish to see in the Recamán's Sequence : "; + cin>>n; + cout<0) + x=x-i; + else + x=x+i; + cout<