Pattern 17 this is not properly working for even number of input. last line of star is going to miss the printing of the next line

this is not properly working for even number of input. last line of star is going to miss the printing of the next line

@pritamkumar1802_a2f270a501ad65bd This question is only meant for odd n. It is not possible to print for even n.