Answer to Question #278558 in Python for Saivarun

Question #278558

Print intverted hollow right angled triangle with spcl characters...(input-5)

- - - - - -

| /

| /

| /

| /

| /



1
Expert's answer
2021-12-11T18:45:03-0500
n = int(input())
if n > 0:
	print('- '*n + '-')
	for i in range(n):
		print('|' + '  '*(n-i-1) + '/' )

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS