Hollow Right Triangle
This Program name is Hollow Right Triangle. Write a Python program to Hollow Right Triangle, it has two test cases
The below link contains Hollow Right Triangle question, explanation and test cases
https://drive.google.com/file/d/1L2C5_Riggm3d_0ehaWeXsouPKlGyW-hb/view?usp=sharing
We need exact output when the code was run
rows = int(input("Enter Hollow Right Inverted Triangle Rows = "))
print("Hollow Inverted Right Triangle Star Pattern")
i = rows
while(i > 0):
j = rows
while(j > 0):
if i == rows or j == 1 or j == i:
print('*', end = ' ')
else:
print(' ', end = ' ')
j = j - 1
i = i - 1
print()
Comments
Leave a comment