Number patterns set 1

Number pattern set 1
Number pattern set 1
Considering that you have been following our series in which you learn how to build star patterns , English alphabet patterns and character patterns. Now time to print some number patterns. As per my personal opinion number patterns are more important and asked more frequently in the coding interview. So to be ready for coding round I suggest you to learn printing number patterns. In this blog we have shared set 1 of 50+ number patterns, you can find all number patterns here.

Here are the some quick links for more patterns 

Click on the pattern given below and you will get redirected to the code.

Pattern 1

1    
12   
123  
1234 
12345

Code for pattern 1

Pattern 2

5    
54   
543  
5432 
54321

Code for pattern 2

Pattern 3

12345
2345 
345  
45   
5  

Code for pattern 3

Pattern 4

1 2 3 4 5 
 2 3 4 5 
  3 4 5 
   4 5 
    5 
    5 
   4 5 
  3 4 5 
 2 3 4 5 
1 2 3 4 5

Code for pattern 4

Pattern 5

    5 
   4 5 
  3 4 5 
 2 3 4 5 
1 2 3 4 5 

Code for pattern 5

Leave a Reply