Knowledge in Pattern printing programs

Program to print the following format.

The clip explains to print the pattern given in the question like decreasing triangle.