Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Solution for Triangle Quest #38

Merged
merged 3 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Beginner Level πŸ“/Triangle Quest/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
for i in range(1,int(input())):
print(((10**i)//9)*i)
11 changes: 11 additions & 0 deletions Beginner Level πŸ“/Triangle Quest/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
You are given a positive integer N Print a numerical triangle of height N-1 like the one below:

1
22
333
4444
55555
.......

Can you do it using only arithmetic operations, a single for loop and print statement?
Use no more than two lines.
4 changes: 4 additions & 0 deletions Beginner Level πŸ“/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"name": "candy",
"githubUsername": "codingkatty"
},
{
"name": "Tarun Balaji K S",
"githubUsername": "tarunbalajiks"
},


]
Expand Down
Loading