I’ve been trying for a few days to print this slash triangle pattern in a C program, but none of the solutions I’ve found are giving the correct output. Can anyone help me print it correctly in C?
pattern 1
Pattern 2
I’ve been struggling for the past 2-3 days to print a specific slash triangle pattern using C. Despite trying various solutions and scouring the internet for help, I haven’t been able to get the correct output. I am hoping someone here can assist me in figuring out the right way to do this.
If anyone can provide guidance or suggest a solution, I would greatly appreciate it. Thank you in advance for your help!