Number patterns set 4 Number patterns set 4- Post author:Swapnil Jaiswal Post published:November 7, 2022 Post category:Blog / Programs Post comments:0 Comments When we talk about the interview questions apart from theoretical part coding skill is also important. If you have been following our patterns series then you are on the right track of cracking the coding interview.In this series we have learn how to print star patterns , English alphabet patterns and character patterns. Now time to print some number patterns.Below you will find the code to print different types of number pattern using Java , C++ , Python and JavaScript.In this blog we have shared set 4 of 50+ number patterns, you can find all number patterns here. Here are the some quick links for more patterns Number patternsStar PatternsCharacter PatternsStar pattern set 2Star pattern set 3Click on the pattern given below and you will get redirected to the code. 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 6 1 2 3 4 5 6 7 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 9 9 9 9 9 9 9 9 9 9 8 8 8 8 8 8 8 8 7 7 7 7 7 7 7 6 6 6 6 6 6 5 5 5 5 5 4 4 4 4 3 3 3 2 2 1 1 12 123 1234 12345 1234 123 12 1 Pattern 1 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 6 1 2 3 4 5 6 7 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 9 Code for pattern 1 Java C++ Python JavaScript Java C++ Python JavaScript Pattern 2 9 9 9 9 9 9 9 9 9 8 8 8 8 8 8 8 8 7 7 7 7 7 7 7 6 6 6 6 6 6 5 5 5 5 5 4 4 4 4 3 3 3 2 2 1 Code for pattern 2 Java C++ Python JavaScript Java C++ Python JavaScript Pattern 3 1 12 123 1234 12345 1234 123 12 1 Code for pattern 3 Java C++ Python JavaScript Java C++ Python JavaScript You Might Also Like Accenture L1 2026 Salesforce Developer March 6, 2026 Get all Active and Deleted records salesforce November 28, 2022 Trigger – Update All Account Related Contacts June 23, 2024 16 Must Know Salesforce Security Interview Questions for Intermediates April 6, 2025 LWC: Upload File In Specific Folder November 3, 2024 Phone number validation in JavaScript December 31, 2022 Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.