codinasion-archive / codinasion-monorepo

Community Monorepo
https://codinasion.org
MIT License
52 stars 170 forks source link

[Program]: Write a F# program to print floyd's triangle #4142

Closed harshraj8843 closed 10 months ago

harshraj8843 commented 1 year ago

Description

Write a F# program to print floyd's triangle

Floyd's triangle is a right-angled triangle of natural numbers, used in computer science as an example of a space-filling curve. It is named after Robert Floyd. It is defined by filling the rows of the triangle with consecutive numbers, starting with a 1 in the top left corner.

Input  : 5

Output : 
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
How to contribute - Save the solution in `program/program/print-floyd's-triangle/PrintFloyd'sTriangle.fs` file
Preetiraj3697 commented 1 year ago

Assign me.

farhan-sayeed commented 10 months ago

!assign

farhan-sayeed commented 10 months ago

@harshraj8843 Raised a PR https://github.com/codinasion/codinasion/pull/4681 Please review & do add the hactoberfest & hactoberfest-accepted label while merging