diff --git a/Patterns_Questions/Palindrome_pattern.cpp b/Patterns_Questions/Palindrome_pattern.cpp new file mode 100644 index 00000000..0c07e2b2 --- /dev/null +++ b/Patterns_Questions/Palindrome_pattern.cpp @@ -0,0 +1,37 @@ +#include + +using namespace std; + +int main(){ + int n; + cin>>n; + + for (int i = 0; i < n; i++) + { + for (int j = 0; j < n ; j++) + { + if( n-j<=i+1){ + cout<