Right Angled Triangle - 3
This Program name is Right Angled Triangle - 3. Write a Python program to Right Angled Triangle - 3, it has two test cases
The below link contains Leap Year question, explanation and test cases
https://drive.google.com/file/d/1gSyv9i4BdnUeFcZrVWRneMTROebbSYOL/view?usp=sharing
We need exact output when the code was run
n = int(input('Enter positive integer here: '))
n1 = n + 1
print('-' * n1)
for I in range(1,n1):
print('|' + ' '*(n-I)+'/')
Enter positive integer here: 5
______
| /
| /
| /
| /
|/
Enter positive integer here: 7
________
| /
| /
| /
| /
| /
| /
|/
Comments
Leave a comment