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.hs (#4979)
Browse files Browse the repository at this point in the history
Writing a Haskell program to print inverted pyramid pattern.
  • Loading branch information
jcmlumacad1 authored Jan 3, 2024
1 parent 2710a1a commit 4fa34d4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
main = do
let n = 5
mapM_ (putStrLn . unwords . map show) [[1..x] | x <- [n,n-1..1]]

2 comments on commit 4fa34d4

@vercel
Copy link

@vercel vercel bot commented on 4fa34d4 Jan 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 4fa34d4 Jan 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.