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.
in C and CPP
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.