In this program, we will understand how to write a C program triangle pattern first. C knowledge is required to understand this program. We will try to understand the simple way the C program triangle pattern first.
First of all, you can imagine the output screen then build your logic.
Enter number:5^^^^^^^^^^^^^^^
You must have this knowledge
Program logic
- first of all, we take input.
- after that, we apply the nested loop.
- i>=j decide which position print star.
0 Comments:
Post a Comment
Please do not enter any spam link in the comment box.