Write a C program that reads a positive integer n>0, representing the number of lines, and then prints the pattern shown in the sample I/O.
If the user’s input is invalid, output “invalid\n”.
Positive Integer
Combination of "*" and "_"