Write a ‘C’ function to generate the following figure for n = 7

b) Write a ‘C’ function to generate the following figure for n = 7.

The value of n is passed to the function as an argument. Print the triangle only if n is odd
otherwise print an error message.



Leave a Reply