From 248fc2fb9dfc509c9ce7e66a3846ccf156dbaa79 Mon Sep 17 00:00:00 2001 From: NIRAJ KUMAR PANDA <92975242+NIRAJ12020097@users.noreply.github.com> Date: Thu, 20 Oct 2022 15:37:33 +0530 Subject: [PATCH] Create alphabets pattern.cpp --- alphabets pattern.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 alphabets pattern.cpp diff --git a/alphabets pattern.cpp b/alphabets pattern.cpp new file mode 100644 index 0000000..877df5b --- /dev/null +++ b/alphabets pattern.cpp @@ -0,0 +1,23 @@ +#include + +using namespace std; + +int main() { + int n; + cin >> n; + int row = 1; + while(row<=n) { + int col = 1; + char ch = 'A' + row - 1; + while(col<=n) { + + cout<< ch; + ch = ch +1; + + col = col + 1; + } + cout<