codinasion-archive / codinasion-monorepo

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

[Program]: Write a R program to print floyd's triangle #4152

Closed harshraj8843 closed 10 months ago

harshraj8843 commented 1 year ago

Description

Write a R 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/print_floyd's_triangle.r` file
Preetiraj3697 commented 1 year ago

!assign

farhan-sayeed commented 10 months ago

!assign

farhan-sayeed commented 10 months ago

@harshraj8843 Added PR here https://github.com/codinasion/codinasion/pull/4683 Please review & do add the hactoberfest & hactoberfest-accepted label while merging