A triangular star pattern and reverse triangular star pattern using c programming language.
The task you have to perform is “Star Pattern In C”. Printing different pattern is one of the most popular programming exercise for beginners, it not only improves the programming skills but also the thinking ability of the person.
Following are the instructions you have to follow:
Instructions:- Take input from the user and ask the user to choose 0 for the triangular star pattern and 1 for the reserved triangular star pattern. When the user entered the number, your program should print the pattern accordingly.
Hint: Ask the user to enter the number of rows and then use nested for loop to print rows and columns of triangular star pattern.