Number patterns set 2

You are currently viewing Number patterns set 2

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 2 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 
   2 2 
  3 3 3 
 4 4 4 4 
5 5 5 5 5 

Code for pattern 1

Pattern 2

1        
12       
123      
1234     
12345    
123456   
1234567  
12345678 
123456789

Code for pattern 2

Pattern 3

1        
22       
333      
4444     
55555    
666666   
7777777  
88888888 
999999999   

Code for pattern 3

Pattern 4

9        
98       
987      
9876     
98765    
987654   
9876543  
98765432 
987654321

Code for pattern 4

Pattern 5

9        
88       
777      
6666     
55555    
444444   
3333333  
22222222 
111111111

Code for pattern 5

Leave a Reply