C++ Alphabet Pattern 23

Last Updated:

C++ Alphabet Pattern 23

Try to print the following alphabet pattern using C++.

Print This Output
        E
      E D
    E D C
  E D C B
E D C B A

Source Code

C Compiler
#include <iostream> #include <iomanip> using namespace std; int main() { int i, j; for(i=69; i>=65; i--) { for(j=65; j<i; j++) cout << " "; for(j=69; j>=i; j--) cout << setw(2) << char(j); cout << "\n"; } return 0; }

Share this Page

Meet the Author