( Displaying Triangles) Write an app that displays the followingpatterns separately, one below the other. Use for loops to generatethe patterns. All asterisks to display side by side. A statement ofthe form Console. Write (‘*’); which causes the asterisks todisplay side by side. A statement of the form Console. WriteLine(); can be used to move to the next line. A statement of the formConsole.Write(‘ ‘); can be used to display a space for the last twopatterns. There should be no other output statements in the app[Hint: The last two patterns require that each line begins with anappropriate number of blank spaces]