Write a program in Python to 4. Python program for the upside-down triangle of x. The program should get an even integer n as input and draw the triangle as follows.
rows= int(input("Enter an even number of rows: "))
if rows%2==0:
for i in range(rows + 1, 0, -1):
for j in range(0, i - 1):
print("*", end=' ')
print(" ")
else:
print("Input Error!")