DEV Community

Cover image for Day 09: Unveiling the Magic of INTRODUCTION in Java, C++, Python, and Kotlin!
Nitin-bhatt46
Nitin-bhatt46

Posted on

Day 09: Unveiling the Magic of INTRODUCTION in Java, C++, Python, and Kotlin!

DAY - 09

Today’s Learning :-

For more Tech content Join us on linkedin click here

All the code snippets in this journey are available on my GitHub repository. 📂 Feel free to explore and collaborate: Git Repository

Pattern: ( rev_tri )

  A B C D
  A B C
  A B
  A
Enter fullscreen mode Exit fullscreen mode

First Pattern: Take an input n from the user, and create a pattern like below, for n=5, we have output like this.

      1
    2 1
  3 2 1
4 3 2 1
Enter fullscreen mode Exit fullscreen mode

5 4 3 2 1

Second Pattern: Take an input n from the user, and create a pattern like below, for n=5, we have output like this.

     A
   B B
 C C C
Enter fullscreen mode Exit fullscreen mode

D D D D
E E E E E

Third Pattern: Take an input n from the user, and create a pattern like below, for n=5, we have output like this.

    5
  5 4
5 4 3
Enter fullscreen mode Exit fullscreen mode

5 4 3 2
5 4 3 2 1

Fourth Pattern: Take an input n from the user, and create a pattern like below, for n=5, we have output like this.

    E
  E D
E D C
Enter fullscreen mode Exit fullscreen mode

E D C B
E D C B A

Feel free to reshare this post to enhance awareness and understanding of these fundamental concepts.
Code snippets are in Git repository.

🙏 Thank you all for your time and support! 🙏
Don't forget to catch me daily at 10:30 Am (Monday to Friday) for the latest updates on my programming journey! Let's continue to learn, grow, and inspire together! 💻✨

Top comments (0)