Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
Create print-inverted-pyramid-pattern.jl (#4810)
Browse files Browse the repository at this point in the history
Co-authored-by: Harsh Raj <harshraj8843@gmail.com>
  • Loading branch information
shaurya-clemson and harshraj8843 authored Dec 1, 2023
1 parent fc31228 commit 2934c15
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
function print_inverted_pyramid(n)
for i in 1:n
for j in 1:(n-i+1)
print(j, " ")
end
println()
end
end

# sending parameters to function
n = 5
print_inverted_pyramid(n)

0 comments on commit 2934c15

Please sign in to comment.