From 099f5a0b5ee30e139b53bd99ab5fa6386b6608f1 Mon Sep 17 00:00:00 2001 From: Avinash Kumar Date: Sun, 30 Oct 2022 23:09:40 +0530 Subject: [PATCH] Palindrome_pattern code added --- Patterns_Questions/Palindrome_pattern.cpp | 37 ++++++++++++++++++ .../.gradle/6.7/fileChanges/last-build.bin | Bin 0 -> 1 bytes .../.gradle/6.7/fileHashes/fileHashes.lock | Bin 0 -> 17 bytes .../.android/.gradle/6.7/gc.properties | 0 .../.android/.gradle/checksums/checksums.lock | Bin 0 -> 17 bytes .../.gradle/configuration-cache/gc.properties | 0 .../.android/.gradle/vcs-1/gc.properties | 0 7 files changed, 37 insertions(+) create mode 100644 Patterns_Questions/Palindrome_pattern.cpp create mode 100644 flashchat-Chat App with Profanity filter/.android/.gradle/6.7/fileChanges/last-build.bin create mode 100644 flashchat-Chat App with Profanity filter/.android/.gradle/6.7/fileHashes/fileHashes.lock create mode 100644 flashchat-Chat App with Profanity filter/.android/.gradle/6.7/gc.properties create mode 100644 flashchat-Chat App with Profanity filter/.android/.gradle/checksums/checksums.lock create mode 100644 flashchat-Chat App with Profanity filter/.android/.gradle/configuration-cache/gc.properties create mode 100644 flashchat-Chat App with Profanity filter/.android/.gradle/vcs-1/gc.properties 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<