One of the most important areas you should have a focus on when you are preparing for the interview is a pattern printing program. I don’t think that in an interview if your recruiter is recruiting you as a software developer/software engineering profile will not ask to write a program to print given pattern (maybe in some interview not).
Writing program is all about how efficiently and fast you can think logics
Basically, Writing a program of any pattern is not tough. It only requires time and practices.
When you are going to write a program of any pattern for the first time then you will surely realize that it is taking time to build a logic and writing program to print that particularly given pattern. Here 80-90% is only the game of thinking the logic and once you imagine the logic then very quickly you can write a program.
Below I have collected the list if most important and most frequently asked pattern program and also I have provided their program in Java. Solution contains nested for loops and if else block etc.
You should also prepare pattern program in C language.
NOTE:- I kindly request to all readers and my website lovers please try to make all programs by self before go for the solution.
Different Types of Pyramid Patterns

Left Half Pyramid Pattern Using *

Right Inverted Half Pyramid Pattern Using *

Left Half Inverted Pyramid Pattern Using *

Right Half Pyramid Pattern Using *

Half Pyramid Pattern

Inverted Half Pyramid Pattern

Left Half Pyramid Pattern Using Numbers

Left Half Inverted Pyramid Pattern Using Numbers

Inverted Pyramid Pattern Using Numbers
Click Here To See Pyramid Pattern Program In Java
Different Types of Diamond Patterns

Right Half Diamond Pattern

Left Half Diamond Pattern

Full Diamond Pattern
Click here To See Diamond Pattern Program In Java
Pascal’s Triangle

Pascal’s Traingle
Click here To See Pascal’s Triangle Program In Java
Print Floyd’s Triangle

Print Floyd’s Triangle
Click here To See Floyd’s Triangle Program In Java
Different Types of Rhombus Patterns

Left inclined Rhombus Pattern

Right Inclined Rhombus Pattern
Click here To See Rhombus Pattern Program In Java
Different Types of Rectangle Patterns

Hollow Rectangle

Solid Rectangle
Click here To See Rectangle Pattern Program In Java
Different Types of Patterns Using Star And Hyphen

Left inclined Rhombus Pattern

Right Half Diamond Pattern Using Star and Hyphen

Diamond Pattern Using Star and Hyphen

Half Diamond Using Star Hyphen

Inverted Half Diamond Using Star Hyphen