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
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
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
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
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
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)